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

Commit 8f8bc3f

Browse files
committed
chore: adjust webpack configs
1 parent 787d442 commit 8f8bc3f

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

Diff for: templates/webpack.angular.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ module.exports = env => {
149149
{
150150
loader: "nativescript-dev-webpack/bundle-config-loader",
151151
options: {
152-
registerPages: false,
152+
angular: true,
153153
loadCss: !snapshot, // load the application css if in debug mode
154154
}
155155
},
@@ -249,6 +249,7 @@ module.exports = env => {
249249
if (snapshot) {
250250
config.plugins.push(new nsWebpack.NativeScriptSnapshotPlugin({
251251
chunk: "vendor",
252+
angular: true,
252253
requireModules: [
253254
"reflect-metadata",
254255
"@angular/platform-browser",

Diff for: templates/webpack.javascript.js

-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,6 @@ module.exports = env => {
143143
{
144144
loader: "nativescript-dev-webpack/bundle-config-loader",
145145
options: {
146-
registerPages: true, // applicable only for non-angular apps
147146
loadCss: !snapshot, // load the application css if in debug mode
148147
}
149148
},

Diff for: templates/webpack.typescript.js

-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,6 @@ module.exports = env => {
145145
{
146146
loader: "nativescript-dev-webpack/bundle-config-loader",
147147
options: {
148-
registerPages: true, // applicable only for non-angular apps
149148
loadCss: !snapshot, // load the application css if in debug mode
150149
}
151150
},

0 commit comments

Comments
 (0)