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

Commit b6db71f

Browse files
committed
refactor(load-app-css): use registerModule instead of require.context
1 parent fd069c9 commit b6db71f

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

Diff for: load-application-css.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
const application = require("application");
2-
require("ui/styling/style-scope");
3-
const appCssContext = require.context("~/", false, /^\.\/app\.(css|scss|less|sass)$/);
4-
global.registerWebpackModules(appCssContext);
1+
const application = require("tns-core-modules/application");
2+
require("tns-core-modules/ui/styling/style-scope");
3+
4+
global.registerModule("./app.css", () => require("~/app"));
5+
56
application.loadAppCss();
67

0 commit comments

Comments
 (0)