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

webpack的plugins如何配置? #11

Open
luterc opened this issue Oct 16, 2019 · 0 comments
Open

webpack的plugins如何配置? #11

luterc opened this issue Oct 16, 2019 · 0 comments

Comments

@luterc
Copy link

luterc commented Oct 16, 2019

文档中描述:

可以在hey.conf.js中webpack配置项中扩张(扩展?)配置以下属性:
plugins
module

尝试:

npm i --save-dev terser-webpack-plugin
const TerserPlugin = require('terser-webpack-plugin')
webpack:{
...
//代码混淆
plugins: [new TerserPlugin()],
....

}
报错:
 HEY CLI v2.7.1 
[HEY] Can't find  hey.config.js or package.json 'hey' param. 

请问:以terser-webpack-plugin插件为例,请问应该如何配置?

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

1 participant