Skip to content

Commit 063c64e

Browse files
Shlomi Assaf (shlassaf)PatrickJS
authored andcommitted
feature: send component resources down the loader chain before processed by AOT compiler
1 parent f37fa22 commit 063c64e

File tree

2 files changed

+481
-298
lines changed

2 files changed

+481
-298
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"homepage": "https://github.com/angularclass/angular2-webpack-starter",
1212
"license": "MIT",
1313
"scripts": {
14-
"build:aot:prod": "npm run clean:dist && npm run clean:aot && npm run ngc && webpack --config config/webpack.prod.js --progress --profile --bail",
14+
"build:aot:prod": "npm run clean:dist && npm run clean:aot && npm run ngc -- --webpack config/webpack.prod.js && webpack --config config/webpack.prod.js --progress --profile --bail",
1515
"build:aot": "npm run build:aot:prod",
1616
"build:dev": "npm run clean:dist && webpack --config config/webpack.dev.js --progress --profile",
1717
"build:docker": "npm run build:prod && docker build -t angular2-webpack-start:latest .",
@@ -36,7 +36,7 @@
3636
"github-deploy:prod": "webpack --config config/webpack.github-deploy.js --progress --profile --env.githubProd",
3737
"github-deploy": "npm run github-deploy:dev",
3838
"lint": "npm run tslint \"src/**/*.ts\"",
39-
"ngc": "./node_modules/.bin/ngc -p tsconfig.webpack.json",
39+
"ngc": "./node_modules/.bin/ngc-w -p tsconfig.webpack.json",
4040
"postversion": "git push && git push --tags",
4141
"prebuild:dev": "npm run clean:dist",
4242
"prebuild:prod": "npm run clean:dist",
@@ -120,6 +120,7 @@
120120
"karma-remap-coverage": "^0.1.1",
121121
"karma-sourcemap-loader": "^0.3.7",
122122
"karma-webpack": "1.8.0",
123+
"ngc-webpack": "^1.0.1",
123124
"npm-run-all": "^3.1.2",
124125
"parse5": "^2.2.2",
125126
"protractor": "^4.0.10",

0 commit comments

Comments
 (0)