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

Commit d812d5d

Browse files
sis0k0SvetoslavTsenov
authored andcommitted
fix(angular): AoT rebuild on template and style changes (#659)
* 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 * refactor: remove obsolete comment
1 parent de7d071 commit d812d5d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: templates/webpack.angular.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -183,9 +183,9 @@ module.exports = env => {
183183
{ test: /\.css$/, exclude: /[\/|\\]app\.css$/, use: "raw-loader" },
184184
{ test: /\.scss$/, exclude: /[\/|\\]app\.scss$/, use: ["raw-loader", "resolve-url-loader", "sass-loader"] },
185185

186-
// Compile TypeScript files with ahead-of-time compiler.
187186
{
188-
test: /.ts$/, use: [
187+
test: /(?:\.ngfactory\.js|\.ngstyle\.js|\.ts)$/,
188+
use: [
189189
"nativescript-dev-webpack/moduleid-compat-loader",
190190
"@ngtools/webpack",
191191
]

0 commit comments

Comments
 (0)