From e79b7a8de59b6e7a1c1c3e6bcdeacd861c32d2ba Mon Sep 17 00:00:00 2001 From: recanman <29310982+recanman@users.noreply.github.com> Date: Fri, 13 Sep 2024 23:29:24 -0700 Subject: [PATCH] build: fix webpack config for purgecss --- webpack.config.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/webpack.config.js b/webpack.config.js index d1a8d91..ea9d9cd 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -29,7 +29,9 @@ module.exports = { }), new PurgeCSSPlugin({ 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'] })