angular-cli:如何配置 webpack? [英] angular-cli: how do I configure webpack?
问题描述
好的,我很高兴 angular-cli 的存在.标准万岁!
Ok, I'm very pleased that angular-cli exists. Hooray for standards!
然而,我有点不安,webpack 在 angular-cli 代码深处的某个地方运行,并且没有,例如,webpack.config.js.
However, I am a little disturbed that webpack is operating somewhere in the depths of the angular-cli code and there is not, for example, a webpack.config.js.
什么给?如何配置加载器?插件?ng serve
是否在后台使用 webpack 服务器?
What gives? How do I configure loaders? Plugins? Is ng serve
using the webpack server in the background?
谁能解释一下?
推荐答案
目前还没有办法用 angular-cli 配置 webpack,而且听起来不会很快:https://github.com/angular/angular-cli/issues/1656
There is no way to configure webpack with angular-cli presently and it sounds like it's not coming soon: https://github.com/angular/angular-cli/issues/1656
这篇关于angular-cli:如何配置 webpack?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!