Skip to content

但凡打包我们都建议使用 NODE_ENV=production #7060

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

Closed
617450941 opened this issue Mar 17, 2022 · 1 comment
Closed

但凡打包我们都建议使用 NODE_ENV=production #7060

617450941 opened this issue Mar 17, 2022 · 1 comment

Comments

@617450941
Copy link

但凡打包我们都建议使用 NODE_ENV=production

其他情况下需要压缩文件的话参考这里的配置

const TerserPlugin = require('terser-webpack-plugin')
const terserOptions = require('./terserOptions')
webpackConfig.optimization.minimizer([
new TerserPlugin(terserOptions(options))
])
}

Originally posted by @sodatea in #3739 (comment)

为什么我的项目突然VUE_CLI_TEST 这个值会变成undefined 导致打包不会压缩优化

@vue-bot
Copy link

vue-bot commented Mar 17, 2022

Hello, thank you for taking time filling this issue!

However, we kindly ask you to use our Issue Helper when creating new issues, in order to ensure every issue provides the necessary information for us to investigate. This explains why your issue has been automatically closed by me (your robot friend!).

I hope to see your helper-created issue very soon!


你好,你的 issue 不符合我们所要求的格式,因此已被自动关闭。为了确保每个 issue 都提供必需的相关信息,请务必使用我们的 Issue 向导 来创建新 issue,谢谢!

@vue-bot vue-bot closed this as completed Mar 17, 2022
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