angular-docs-cn/aio/tools/cli-patches/ngo-loader.patch

15 lines
522 B
Diff
Raw Normal View History

2017-05-12 16:58:11 -04:00
--- node_modules/@angular/cli/models/webpack-configs/production.js 2017-05-12 14:30:22.000000000 -0700
+++ node_modules/@angular/cli/models/webpack-configs/production.js 2017-05-12 14:32:23.000000000 -0700
@@ -68,6 +68,11 @@
}
return {
entry: entryPoints,
+ module: {
+ rules: [
+ {"test": /@angular\/.*\.js$/, "loader": "ngo-loader"},
+ ]
+ },
plugins: [
new webpack.EnvironmentPlugin({
'NODE_ENV': 'production'