mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 15:29:17 +02:00
Revert "Smaller CSS with purge CSS (130kb removed)"
This reverts commit 7ed3a24723
.
This commit is contained in:
parent
ba89cc640f
commit
712418ecb6
3 changed files with 3 additions and 86 deletions
|
@ -1,22 +1,10 @@
|
|||
|
||||
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
|
||||
const webpack = require('webpack');
|
||||
const PurgecssPlugin = require('purgecss-webpack-plugin')
|
||||
const glob = require('glob-all')
|
||||
const path = require('path')
|
||||
|
||||
let plugins = [
|
||||
// do not include moment.js locales since it's quite heavy
|
||||
new webpack.IgnorePlugin(/^\.\/locale$/, /moment$/),
|
||||
// Remove unused CSS using purgecss. See https://github.com/FullHuman/purgecss
|
||||
// for more information about purgecss.
|
||||
new PurgecssPlugin({
|
||||
paths: glob.sync([
|
||||
path.join(__dirname, './public/index.html'),
|
||||
path.join(__dirname, './**/*.vue'),
|
||||
path.join(__dirname, './src/**/*.js')
|
||||
])
|
||||
}),
|
||||
]
|
||||
if (process.env.BUNDLE_ANALYZE === '1') {
|
||||
plugins.push(new BundleAnalyzerPlugin())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue