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 used chainWebpack, eg:
module.exports = function (config, { webpack }) { config.merge({ plugin: { 'banner': { plugin: webpack.BannerPlugin, args: [ { entryOnly: true, banner: `${process.env.npm_package_name} v${process.env.npm_package_version}\n` + '(c) 2019 +v\n' + 'Released under the MIT License.' } ] } } }); }
it never work.
and I found node_modules/af-webpack/lib/getConfig/uglifyOptions.js:59 comments: false,
node_modules/af-webpack/lib/getConfig/uglifyOptions.js
comments: false
so what can I do now?
The text was updated successfully, but these errors were encountered:
use uglifyjs-webpack-plugin instead
chainWebpack(config, { webpack }) { config.merge({ plugin: { install: { plugin: require('uglifyjs-webpack-plugin'), args: [{ sourceMap: false, uglifyOptions: { compress: { // remove `console.*` drop_console: true, }, output: { // whether to actually beautify the output beautify: false, // remove all comments comments: false, }, } }] } } }) }
https://umijs.org/config/#chainwebpack
Sorry, something went wrong.
Checkout https://umijs.org/config/#uglifyjsoptions for detail.
// .umirc.js export default { uglifyJSOptions: { uglifyOptions: { output: { comments: true } } }, }
No branches or pull requests
I used chainWebpack, eg:
it never work.
and I found
node_modules/af-webpack/lib/getConfig/uglifyOptions.js
:59comments: false
,so what can I do now?
The text was updated successfully, but these errors were encountered: