-
Notifications
You must be signed in to change notification settings - Fork 44
Open
Description
I am quite sure there is some config I must be missing as there is no reason the bundle size for this lib needs to be in MBs. Any suggestions?
here is my webpack config
`const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const glob = require('glob');
module.exports = {
entry: {
'bundle.js': glob.sync('build/static/?(js|css)/main.*.?(js|css)').map((f) => path.resolve(__dirname, f)),
},
mode: 'production',
output: {
filename: 'build/static/js/bundle.min.js',
},
module: {
rules: [
{
test: /.css$/,
use: ['style-loader', 'css-loader'],
},
],
},
plugins: [new UglifyJsPlugin()],
};
`
Metadata
Metadata
Assignees
Labels
No labels