From 4d98cdd4f40220ae91e4c842d91a84d1c3080eb5 Mon Sep 17 00:00:00 2001 From: Eliot Berriot Date: Tue, 3 Mar 2020 11:42:52 +0100 Subject: [PATCH] Disabled Purge CSS, it's causing too many issues --- front/vue.config.js | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/front/vue.config.js b/front/vue.config.js index 44356cca0..5d2d1ea44 100644 --- a/front/vue.config.js +++ b/front/vue.config.js @@ -17,19 +17,21 @@ let plugins = [ if (process.env.BUNDLE_ANALYZE === '1') { plugins.push(new BundleAnalyzerPlugin()) } -plugins.push( - new PurgecssPlugin({ - paths: glob.sync([ - path.join(__dirname, './public/index.html'), - path.join(__dirname, './public/embed.html'), - path.join(__dirname, './**/*.vue'), - path.join(__dirname, './src/**/*.js') - ]), - whitelist: ['scale'], - whitelistPatterns: [/plyr/, /toast/, /theme/], - whitelistPatternsChildren: [/plyr/, /dropdown/, /upward/] - }), -) +// Disabled because it causes some issues, like #1032, since some useful rules are still +// removed, and we cannot detect this during development +// plugins.push( +// new PurgecssPlugin({ +// paths: glob.sync([ +// path.join(__dirname, './public/index.html'), +// path.join(__dirname, './public/embed.html'), +// path.join(__dirname, './**/*.vue'), +// path.join(__dirname, './src/**/*.js') +// ]), +// whitelist: ['scale'], +// whitelistPatterns: [/plyr/, /toast/, /transition/, /visible/], +// whitelistPatternsChildren: [/plyr/, /dropdown/, /upward/] +// }), +// ) module.exports = { publicPath: baseUrl, productionSourceMap: false,