Fix animations being nuked on production compilation

This commit is contained in:
Dane Everitt 2018-06-16 17:13:03 -07:00
parent 074a929315
commit 941c585c73
No known key found for this signature in database
GPG Key ID: EEA66103B3D71F53
1 changed files with 4 additions and 0 deletions

View File

@ -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,