Helps to run purgecss against actual files

This commit is contained in:
Dane Everitt 2019-12-15 13:52:57 -08:00
parent 39f1392eee
commit 59448520fe
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53

View file

@ -27,8 +27,8 @@ if (isProduction) {
plugins = plugins.concat([ plugins = plugins.concat([
new PurgeCssPlugin({ new PurgeCssPlugin({
paths: glob.sync([ paths: glob.sync([
path.join(__dirname, 'resources/scripts/**/*.ts'), path.join(__dirname, 'resources/scripts/**/*.tsx'),
path.join(__dirname, 'resources/themes/pterodactyl/**/*.blade.php'), path.join(__dirname, 'resources/views/templates/**/*.blade.php'),
]), ]),
whitelistPatterns: [/^xterm/], whitelistPatterns: [/^xterm/],
extractors: [ extractors: [