Skip to content

Commit 4dc8848

Browse files
committed
chore: update to nativescript-angular 5.2 and {N} webpack 0.9.1
1 parent 893d182 commit 4dc8848

File tree

8 files changed

+1656
-258
lines changed

8 files changed

+1656
-258
lines changed

app/app.module.ngfactory.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/**
2+
* A dynamically generated module when compiled with AoT.
3+
*/
4+
export const AppModuleNgFactory: any;

app/vendor-platform.android.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
require("application");
22
if (!global["__snapshot"]) {
3-
/*
4-
In case snapshot generation is enabled these modules will get into the bundle but will not be required/evaluated.
5-
The snapshot webpack plugin will add them to the tns-java-classes.js bundle file. This way, they will be evaluated on app start as early as possible.
6-
*/
3+
// In case snapshot generation is enabled these modules will get into the bundle
4+
// but will not be required/evaluated.
5+
// The snapshot webpack plugin will add them to the tns-java-classes.js bundle file.
6+
// This way, they will be evaluated on app start as early as possible.
77
require("ui/frame");
88
require("ui/frame/activity");
99
}

app/vendor.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
// Snapshot the ~/app.css and the theme
22
const application = require("application");
33
require("ui/styling/style-scope");
4-
global.registerModule("app.css", () => require("~/app.css"));
4+
const appCssContext = require.context("~/", false, /^\.\/app\.(css|scss|less|sass)$/);
5+
global.registerWebpackModules(appCssContext);
56
application.loadAppCss();
67

78
require("./vendor-platform");

0 commit comments

Comments
 (0)