diff --git a/webpack.config.js b/webpack.config.js index 00206a2df..816fba2f0 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -45,6 +45,10 @@ const productionPlugins = [ path.join(__dirname, 'resources/assets/scripts/**/*.vue'), path.join(__dirname, 'resources/themes/pterodactyl/**/*.blade.php'), ]), + // Don't let PurgeCSS remove classes ending with -enter or -leave-active + // They're used by Vue transitions and are therefore not specifically defined + // in any of the files are are checked by PurgeCSS. + whitelistPatterns: [/-enter$/, /-leave-active$/], extractors: [ { extractor: TailwindExtractor,