Skip to content
New issue

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

umi3中无去除console相关配置? #5089

Closed
zhilianbi520 opened this issue Jul 24, 2020 · 2 comments
Closed

umi3中无去除console相关配置? #5089

zhilianbi520 opened this issue Jul 24, 2020 · 2 comments

Comments

@zhilianbi520
Copy link

zhilianbi520 commented Jul 24, 2020

What happens?

umi中去除console无效??
terserOptions:{ compress: { drop_console:process.env.NODE_ENV==='production'?true:false, } }
暴露的配置项无相关配置??https://github.com/umijs/umi/blob/master/packages/bundler-webpack/src/getConfig/terserOptions.ts
ps:没有配置esbuild相关内容。

Context

  • Umi Version: 3.2.10
  • Node Version: 12.6
  • Platform: mac
@zhilianbi520 zhilianbi520 changed the title umi3中无去除console相关配置?? umi3中无去除console相关配置? Jul 24, 2020
@sorrycc
Copy link
Member

sorrycc commented Jul 24, 2020

terserOptions:{ compress: { drop_console:process.env.NODE_ENV==='production'?true:false, } } 这个有啥问题?

@zhilianbi520
Copy link
Author

terserOptions:{ compress: { drop_console:process.env.NODE_ENV==='production'?true:false, } } 这个有啥问题?

已解,部署至服务器,未更新资源导致.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants