build: fix webpack config for purgecss

This commit is contained in:
recanman 2024-09-13 23:29:24 -07:00
parent 72eb7bc3bc
commit e79b7a8de5

View file

@ -29,7 +29,9 @@ module.exports = {
}), }),
new PurgeCSSPlugin({ new PurgeCSSPlugin({
paths: glob.sync([ paths: glob.sync([
path.join(__dirname, 'index.php') path.join(__dirname, 'index.php'),
path.join(__dirname, 'src/js/*.js'),
path.join(__dirname, 'templates/*.php'),
]), ]),
safelist: ['tooltip', 'fade', 'show', 'bs-tooltip-top', 'tooltip-inner', 'tooltip-arrow', 'btn-equals', 'btn-arrow', 'alert', 'alert-warning'] safelist: ['tooltip', 'fade', 'show', 'bs-tooltip-top', 'tooltip-inner', 'tooltip-arrow', 'btn-equals', 'btn-arrow', 'alert', 'alert-warning']
}) })