Resolve "Redesign the sidebar/navigation to simplify the UI"

This commit is contained in:
Eliot Berriot 2019-12-26 11:38:26 +01:00
parent cdd6f3d759
commit e15d806634
38 changed files with 2073 additions and 1579 deletions

View file

@ -2,11 +2,16 @@
const BundleAnalyzerPlugin = require('webpack-bundle-analyzer').BundleAnalyzerPlugin;
const webpack = require('webpack');
const PurgecssPlugin = require('purgecss-webpack-plugin')
const PreloadWebpackPlugin = require('preload-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$/),
new PreloadWebpackPlugin({
rel: 'preload',
include: ['audio', 'core', 'about']
}),
]
if (process.env.BUNDLE_ANALYZE === '1') {
plugins.push(new BundleAnalyzerPlugin())
@ -40,7 +45,6 @@ module.exports = {
}
},
chainWebpack: config => {
config.optimization.delete('splitChunks')
config.plugins.delete('prefetch-embed')
config.plugins.delete('prefetch-index')
},