Merge branch 'broken-messages' into 'develop'

Disabled Purge CSS, it's causing too many issues

See merge request funkwhale/funkwhale!1045
This commit is contained in:
Eliot Berriot 2020-03-03 11:49:06 +01:00
commit 3f837189ac
1 changed files with 15 additions and 13 deletions

View File

@ -17,19 +17,21 @@ let plugins = [
if (process.env.BUNDLE_ANALYZE === '1') { if (process.env.BUNDLE_ANALYZE === '1') {
plugins.push(new BundleAnalyzerPlugin()) plugins.push(new BundleAnalyzerPlugin())
} }
plugins.push( // Disabled because it causes some issues, like #1032, since some useful rules are still
new PurgecssPlugin({ // removed, and we cannot detect this during development
paths: glob.sync([ // plugins.push(
path.join(__dirname, './public/index.html'), // new PurgecssPlugin({
path.join(__dirname, './public/embed.html'), // paths: glob.sync([
path.join(__dirname, './**/*.vue'), // path.join(__dirname, './public/index.html'),
path.join(__dirname, './src/**/*.js') // path.join(__dirname, './public/embed.html'),
]), // path.join(__dirname, './**/*.vue'),
whitelist: ['scale'], // path.join(__dirname, './src/**/*.js')
whitelistPatterns: [/plyr/, /toast/, /theme/], // ]),
whitelistPatternsChildren: [/plyr/, /dropdown/, /upward/] // whitelist: ['scale'],
}), // whitelistPatterns: [/plyr/, /toast/, /transition/, /visible/],
) // whitelistPatternsChildren: [/plyr/, /dropdown/, /upward/]
// }),
// )
module.exports = { module.exports = {
publicPath: baseUrl, publicPath: baseUrl,
productionSourceMap: false, productionSourceMap: false,