angular-cli:如何配置webpack? [英] angular-cli: how do I configure webpack?

查看:150
本文介绍了angular-cli:如何配置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,而且听起来不会很快到来:

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆