简体   繁体   English

angular-cli:如何配置webpack?

[英]angular-cli: how do I configure webpack?

Ok, I'm very pleased that angular-cli exists. 好吧,我很高兴角度cli存在。 Hooray for standards! 万岁的标准!

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. 但是,我有点不安的是webpack在angular-cli代码的深处运行,并且没有例如webpack.config.js。

What gives? 是什么赋予了? How do I configure loaders? 如何配置加载器? Plugins? 插件? Is ng serve using the webpack server in the background? ng serve是否在后台使用webpack服务器?

Can someone elucidate? 有人可以澄清吗?

目前没有办法用angular-cli配置webpack,听起来好像不会很快: https//github.com/angular/angular-cli/issues/1656

您可以从项目中的cli.json文件中执行此操作。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM