From 941c585c73a0c1aaa711771ea54938ba29139837 Mon Sep 17 00:00:00 2001 From: Dane Everitt Date: Sat, 16 Jun 2018 17:13:03 -0700 Subject: [PATCH] Fix animations being nuked on production compilation --- webpack.config.js | 4 ++++ 1 file changed, 4 insertions(+) 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,