Skip to content

Commit fe268f4

Browse files
authored
adapt build script to resolve build errors
1 parent 6ae39ce commit fe268f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

package.json

Lines changed: 2 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/webpack.prod.js && 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 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-w -p tsconfig.webpack.json",
39+
"ngc": "./node_modules/.bin/ngc -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",

0 commit comments

Comments
 (0)