mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 16:29:20 +02:00
Resolve "Redesign the sidebar/navigation to simplify the UI"
This commit is contained in:
parent
cdd6f3d759
commit
e15d806634
38 changed files with 2073 additions and 1579 deletions
|
@ -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')
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue