Skip to content

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

Open

Description

@zhoujh001

如果在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的源码

Activity

  1. vvpvvp commented on Dec 13, 2019

    @vvpvvp
    Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions