@nativescript/template-blank-vue 9.0.1 → 9.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -15,11 +15,11 @@
15
15
  <key>CFBundlePackageType</key>
16
16
  <string>APPL</string>
17
17
  <key>CFBundleShortVersionString</key>
18
- <string>1.0</string>
18
+ <string>1.0.0</string>
19
19
  <key>CFBundleSignature</key>
20
20
  <string>????</string>
21
21
  <key>CFBundleVersion</key>
22
- <string>1.0</string>
22
+ <string>1.0.0</string>
23
23
  <key>LSRequiresIPhoneOS</key>
24
24
  <true/>
25
25
  <key>UILaunchStoryboardName</key>
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@nativescript/template-blank-vue",
3
3
  "main": "app/app.js",
4
4
  "displayName": "Blank",
5
- "version": "9.0.1",
5
+ "version": "9.0.3",
6
6
  "description": "Blank template for NativeScript apps using Vue.",
7
7
  "author": "NativeScript Team <oss@nativescript.org>",
8
8
  "license": "Apache-2.0",
@@ -24,7 +24,8 @@
24
24
  "tools",
25
25
  "!tools/assets",
26
26
  ".editorconfig",
27
- "jsconfig.json"
27
+ "jsconfig.json",
28
+ "webpack.config.js"
28
29
  ],
29
30
  "keywords": [
30
31
  "nstudio",
@@ -45,7 +46,10 @@
45
46
  "nativescript-vue": "~2.9.3"
46
47
  },
47
48
  "devDependencies": {
48
- "@nativescript/webpack": "5.0.24",
49
- "nativescript-vue-template-compiler": "~2.9.3"
49
+ "@nativescript/webpack": "~5.0.31",
50
+ "nativescript-vue-template-compiler": "~2.9.3",
51
+ "vue": "~2.6.12",
52
+ "vue-loader": "^15.11.1",
53
+ "vue-template-compiler": "~2.6.12"
50
54
  }
51
55
  }
@@ -0,0 +1,34 @@
1
+ const webpack = require("@nativescript/webpack");
2
+ const path = require("path");
3
+ const VueLoaderPlugin = require("vue-loader/lib/plugin");
4
+
5
+ module.exports = (env) => {
6
+ webpack.init(env);
7
+
8
+ // Learn how to customize:
9
+ // https://docs.nativescript.org/webpack
10
+
11
+ webpack.chainWebpack((config) => {
12
+ // Use vue-loader@15 for Vue 2
13
+ config.resolve.alias.set(
14
+ "vue-loader",
15
+ path.resolve(__dirname, "node_modules/vue-loader")
16
+ );
17
+
18
+ // Remove the default VueLoaderPlugin (v17) and add v15
19
+ config.plugins.delete("VueLoaderPlugin");
20
+ config.plugin("VueLoaderPlugin").use(VueLoaderPlugin);
21
+
22
+ // Configure vue-loader for Vue 2
23
+ config.module
24
+ .rule("vue")
25
+ .use("vue-loader")
26
+ .loader(require.resolve("vue-loader"))
27
+ .tap((options) => ({
28
+ ...options,
29
+ compiler: require("vue-template-compiler"),
30
+ }));
31
+ });
32
+
33
+ return webpack.resolveConfig();
34
+ };