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

关于在hey.config.js中添加webpack的rules的问题 #16

Open
zhoujh001 opened this issue Dec 9, 2019 · 1 comment
Open

关于在hey.config.js中添加webpack的rules的问题 #16

zhoujh001 opened this issue Dec 9, 2019 · 1 comment

Comments

@zhoujh001
Copy link

如果在hey.config.js中添加module:{rules:[]},在generatorWebpackConfig.js中初始化好的rules会被覆盖掉。
if(webpackConfig.module) { for(var m in webpackConfig.module) { genWebpackConfig.module[m] = webpackConfig.module[m]; } }
但是我有需要手工添加rules,所以只能去修改generatorWebpackConfig.js的源码

@vvpvvp
Copy link
Member

vvpvvp commented Dec 13, 2019

不知道你这边是需要添加什么rules?
这个建议你直接使用vue-cli,我这个只做简单的一些功能。

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