Skip to content
This repository was archived by the owner on Aug 7, 2021. It is now read-only.

Commit 71d7823

Browse files
committed
feat: support @ngtools/webpack-1.2.1
1 parent 2564bfd commit 71d7823

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

Diff for: postinstall.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ configureDevDependencies(packageJson, function (add) {
5252
add("extract-text-webpack-plugin", "~2.0.0-beta.4");
5353

5454
if (isAngular) {
55-
add("@angular/compiler-cli", "2.2.1");
56-
add("@ngtools/webpack", "1.1.6");
55+
add("@angular/compiler-cli", "2.3.1");
56+
add("@ngtools/webpack", "1.2.1");
5757
} else {
5858
add("awesome-typescript-loader", "~3.0.0-beta.9");
5959
}

Diff for: tsconfig.aot.json.template

+2-1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
"platforms"
1717
],
1818
"angularCompilerOptions": {
19-
"skipMetadataEmit": true
19+
"skipMetadataEmit": true,
20+
"genDir": "./"
2021
}
2122
}

Diff for: webpack.common.js.angular.template

+2-2
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ module.exports = function (platform, destinationApp) {
4747
//Angular AOT compiler
4848
new AotPlugin({
4949
tsConfigPath: "tsconfig.aot.json",
50-
entryModule: "app/app.module#AppModule",
50+
entryModule: path.resolve(__dirname, "app/app.module#AppModule"),
5151
typeChecking: false
5252
}),
5353
];
@@ -123,8 +123,8 @@ module.exports = function (platform, destinationApp) {
123123
{
124124
test: /\.ts$/,
125125
loaders: [
126+
"nativescript-dev-webpack/tns-aot-loader",
126127
"@ngtools/webpack",
127-
"nativescript-dev-webpack/tns-aot-loader"
128128
]
129129
},
130130
// SASS support

0 commit comments

Comments
 (0)