We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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()], }; `
The text was updated successfully, but these errors were encountered:
No branches or pull requests
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()],
};
`
The text was updated successfully, but these errors were encountered: