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

Commit

Permalink
fix(angular): AoT rebuild on template and style changes (#659)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
sis0k0 authored and SvetoslavTsenov committed Sep 17, 2018
1 parent de7d071 commit d812d5d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions templates/webpack.angular.js
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,9 @@ module.exports = env => {
{ test: /\.css$/, exclude: /[\/|\\]app\.css$/, use: "raw-loader" },
{ test: /\.scss$/, exclude: /[\/|\\]app\.scss$/, use: ["raw-loader", "resolve-url-loader", "sass-loader"] },

// Compile TypeScript files with ahead-of-time compiler.
{
test: /.ts$/, use: [
test: /(?:\.ngfactory\.js|\.ngstyle\.js|\.ts)$/,
use: [
"nativescript-dev-webpack/moduleid-compat-loader",
"@ngtools/webpack",
]
Expand Down

0 comments on commit d812d5d

Please sign in to comment.