WebPack 2: Migrate preLoaders and postLoaders

后端 未结 1 1125
既然无缘
既然无缘 2021-02-18 14:32

I\'ve installed webpack@2.1.0-beta.27. Before, I was using webpack@2.1.0-beta.22. On my configuration file I was using preLoaders and

相关标签:
1条回答
  • 2021-02-18 15:30

    From v2.1-beta.23 the loaders section is renamed to rules and pre/postLoaders is now defined under each rule with the enforce property.

    I've answered in more detail in this thread

    More info can also be found in the release notes on github

    The release notes also mentions a migration example in the angular cli repo

    Another tip is to look at the json schema that validates the config for hints.

    0 讨论(0)
提交回复
热议问题