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

Commit a37cca0

Browse files
authored
fix: respect windows paths in /app.css regex (#385)
1 parent eeb1b8e commit a37cca0

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
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: [

Diff for: templates/webpack.typescript.js

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ module.exports = env => {
1313
throw new Error("You need to provide a target platform!");
1414
}
1515
const platforms = ["ios", "android"];
16-
const mainSheet = "app.css";
1716
const { snapshot, uglify, report } = env;
1817

1918
const config = {

0 commit comments

Comments
 (0)