配置
{
context: string,
input: {
name: string,
src: string,
script: string,
html: string,
},
output: {
dll: string,
build: string,
public: string,
},
filenames: {
js: string,
css: string,
media: string,
},
server: {
host: string,
port: string,
original: object,
},
proxy: object,
chunks: [{
name: string,
dependencies: string[],
}],
options: {
'eslint-loader': object,
'css-loader': object,
'postcss-loader': object,
'file-loader': object,
'html-loader': object,
'sass-loader': object,
'style-loader': object,
'url-loader': object,
},
webpack: object,
listener: {
afterBuild: function,
},
}
用法
ng dll --config [development.js]
ng start --config [development.js]
ng build --config [production.js]
ng watch --config [development.js]
ng webpack --config [webpacj.config.js]