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

File tree

‎webpack.common.js.angular.template‎

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ module.exports = function (platform, destinationApp) {
2121

2222
var plugins = [
2323
new ExtractTextPlugin("app.css"),
24-
// Vendor libs go to the vendor.js chunk
2524
new webpack.optimize.CommonsChunkPlugin({
26-
name: ["vendor"]
25+
name: [
26+
// Vendor libs go to the vendor.js chunk
27+
"vendor",
28+
29+
// Compatibility workaround with NativeScript 2.5 Android runtime
30+
// https://github.com/NativeScript/NativeScript/issues/3947
31+
"tns-java-classes",
32+
],
2733
}),
2834
// Define useful constants like TNS_WEBPACK
2935
new webpack.DefinePlugin({

‎webpack.common.js.javascript.template‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ module.exports = function (platform, destinationApp) {
2222
new ExtractTextPlugin("app.css"),
2323
// Vendor libs go to the vendor.js chunk
2424
new webpack.optimize.CommonsChunkPlugin({
25-
name: ["vendor"]
25+
name: [
26+
// Vendor libs go to the vendor.js chunk
27+
"vendor",
28+
29+
// Compatibility workaround with NativeScript 2.5 Android runtime
30+
// https://github.com/NativeScript/NativeScript/issues/3947
31+
"tns-java-classes",
32+
],
2633
}),
2734
// Define useful constants like TNS_WEBPACK
2835
new webpack.DefinePlugin({

‎webpack.common.js.typescript.template‎

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,14 @@ module.exports = function (platform, destinationApp) {
2222
new ExtractTextPlugin("app.css"),
2323
// Vendor libs go to the vendor.js chunk
2424
new webpack.optimize.CommonsChunkPlugin({
25-
name: ["vendor"]
25+
name: [
26+
// Vendor libs go to the vendor.js chunk
27+
"vendor",
28+
29+
// Compatibility workaround with NativeScript 2.5 Android runtime
30+
// https://github.com/NativeScript/NativeScript/issues/3947
31+
"tns-java-classes",
32+
],
2633
}),
2734
// Define useful constants like TNS_WEBPACK
2835
new webpack.DefinePlugin({

0 commit comments

Comments
 (0)