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

Commit 752847e

Browse files
committed
fix(angular): rebuild on ngfactory/ngstyle change
The @ngtools/webpack should be applied to ngfactory and ngstyle files and not only to TS files. fixes #641
1 parent de7d071 commit 752847e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

templates/webpack.angular.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,8 @@ module.exports = env => {
185185

186186
// Compile TypeScript files with ahead-of-time compiler.
187187
{
188-
test: /.ts$/, use: [
188+
test: /(?:\.ngfactory\.js|\.ngstyle\.js|\.ts)$/,
189+
use: [
189190
"nativescript-dev-webpack/moduleid-compat-loader",
190191
"@ngtools/webpack",
191192
]

0 commit comments

Comments
 (0)