Skip to content

Commit 941c585

Browse files
committed
Fix animations being nuked on production compilation
1 parent 074a929 commit 941c585

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

webpack.config.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ const productionPlugins = [
4545
path.join(__dirname, 'resources/assets/scripts/**/*.vue'),
4646
path.join(__dirname, 'resources/themes/pterodactyl/**/*.blade.php'),
4747
]),
48+
// Don't let PurgeCSS remove classes ending with -enter or -leave-active
49+
// They're used by Vue transitions and are therefore not specifically defined
50+
// in any of the files are are checked by PurgeCSS.
51+
whitelistPatterns: [/-enter$/, /-leave-active$/],
4852
extractors: [
4953
{
5054
extractor: TailwindExtractor,

0 commit comments

Comments
 (0)