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

Commit b1d3bcb

Browse files
committed
fix: respect windows paths in /app.css regex
1 parent 9fe3712 commit b1d3bcb

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: templates/webpack.angular.js

+4-4
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ module.exports = env => {
6060
{ test: /\.html$|\.xml$/, use: "raw-loader" },
6161

6262
// tns-core-modules reads the app.css and its imports using css-loader
63-
{ test: /\/app\.css$/, use: "css-loader?url=false" },
64-
{ test: /\/app\.scss$/, use: ["css-loader?url=false", "sass-loader"] },
63+
{ test: /[\/|\\]app\.css$/, use: "css-loader?url=false" },
64+
{ test: /[\/|\\]app\.scss$/, use: ["css-loader?url=false", "sass-loader"] },
6565

6666
// Angular components reference css files and their imports using raw-loader
67-
{ test: /\.css$/, exclude: /\/app\.css$/, use: "raw-loader" },
68-
{ test: /\.scss$/, exclude: /\/app\.scss$/, use: ["raw-loader", "resolve-url-loader", "sass-loader"] },
67+
{ test: /\.css$/, exclude: /[\/|\\]app\.css$/, use: "raw-loader" },
68+
{ test: /\.scss$/, exclude: /[\/|\\]app\.scss$/, use: ["raw-loader", "resolve-url-loader", "sass-loader"] },
6969

7070
// Compile TypeScript files with ahead-of-time compiler.
7171
{ test: /.ts$/, use: [

0 commit comments

Comments
 (0)