From 3cc5ea89d504603a51856aa7b5b9ef8533c33946 Mon Sep 17 00:00:00 2001 From: Gary Gambill Date: Tue, 7 Jan 2020 09:24:21 -0600 Subject: [PATCH 1/2] NS 6.3 Compatible Bugfix: webpack-chain config to v6.0 --- generator/index.js | 20 ++++++++--------- index.js | 53 +++++++++++++++++++++++----------------------- 2 files changed, 36 insertions(+), 37 deletions(-) diff --git a/generator/index.js b/generator/index.js index c17046b..9948d31 100644 --- a/generator/index.js +++ b/generator/index.js @@ -53,11 +53,11 @@ module.exports = async (api, options, rootOptions) => { api.extendPackage({ nativescript: { id: 'org.nativescript.application', - 'tns-ios': { - version: '6.1.0' - }, 'tns-android': { - version: '6.1.0' + version: '6.3.1' + }, + 'tns-ios': { + version: '6.3.0' } }, scripts: { @@ -78,12 +78,12 @@ module.exports = async (api, options, rootOptions) => { 'clean:ios': 'rimraf platforms/ios' }, dependencies: { - 'nativescript-vue': '^2.4.0', - 'tns-core-modules': '^6.1.0' + 'nativescript-vue': '^2.5.0-alpha.3', + 'tns-core-modules': '^6.3.2' }, devDependencies: { - 'nativescript-dev-webpack': '^1.2.0', - 'nativescript-vue-template-compiler': '^2.4.0', + 'nativescript-dev-webpack': '^1.4.0', + 'nativescript-vue-template-compiler': '^2.5.0-alpha.3', 'nativescript-worker-loader': '~0.9.5', 'node-sass': '^4.12.0', 'string-replace-loader': '^2.2.0', @@ -128,8 +128,8 @@ module.exports = async (api, options, rootOptions) => { dependencies: {}, devDependencies: { 'fork-ts-checker-webpack-plugin': '^1.5.0', - 'terser-webpack-plugin': '^2.0.1', - 'tns-platform-declarations': '^6.1.0' + 'terser-webpack-plugin': '^2.1.3', + 'tns-platform-declarations': '^6.3.2' } }); diff --git a/index.js b/index.js index aae4590..a6d66bc 100644 --- a/index.js +++ b/index.js @@ -343,26 +343,25 @@ const nativeConfig = (api, projectOptions, env, projectRoot, platform) => { config.optimization.minimize(Boolean(production)); config.optimization - .minimizer([ - new TerserPlugin({ - parallel: true, - cache: true, - sourceMap: isAnySourceMapEnabled, - terserOptions: { - output: { - comments: false, - semicolons: !isAnySourceMapEnabled - }, - compress: { - // The Android SBG has problems parsing the output - // when these options are enabled - collapse_vars: platform !== 'android', - sequences: platform !== 'android' - }, - keep_fnames: true - } - }) - ]) + .minimizer('terser') + .use(TerserPlugin, [{ + parallel: true, + cache: true, + sourceMap: isAnySourceMapEnabled, + terserOptions: { + output: { + comments: false, + semicolons: !isAnySourceMapEnabled + }, + compress: { + // The Android SBG has problems parsing the output + // when these options are enabled + collapse_vars: platform !== 'android', + sequences: platform !== 'android' + }, + keep_fnames: true + } + }]) .end(); config.module @@ -591,9 +590,9 @@ const nativeConfig = (api, projectOptions, env, projectRoot, platform) => { .uses.get('css-loader') .get('options'), { - minimize: false, + // minimize: false, url: false, - data: '$PLATFORM: ' + platform + ';' + // data: '$PLATFORM: ' + platform + ';' } ) ) @@ -609,8 +608,8 @@ const nativeConfig = (api, projectOptions, env, projectRoot, platform) => { .get('options'), { // minimize: false, - url: false, - data: '$PLATFORM: ' + platform + ';' + // url: false, + prependData: '$PLATFORM: ' + platform + ';' } ) ) @@ -655,7 +654,7 @@ const nativeConfig = (api, projectOptions, env, projectRoot, platform) => { { // minimize: false, url: false, - data: '$PLATFORM: ' + platform + // data: '$PLATFORM: ' + platform } ) ) @@ -671,8 +670,8 @@ const nativeConfig = (api, projectOptions, env, projectRoot, platform) => { .get('options'), { minimize: false, - url: false, - data: '$PLATFORM: ' + platform + // url: false, + prependData: '$PLATFORM: ' + platform } ) ) From 5b04c4c7cb2197303839237482803eaf81067179 Mon Sep 17 00:00:00 2001 From: Gary Gambill Date: Tue, 7 Jan 2020 09:24:46 -0600 Subject: [PATCH 2/2] build 0.3.1 --- package-lock.json | 2 +- package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/package-lock.json b/package-lock.json index 2f4a84e..58bbce5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "vue-cli-plugin-nativescript-vue", - "version": "0.3.0", + "version": "0.3.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 58ee527..d71e9ef 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "vue-cli-plugin-nativescript-vue", - "version": "0.3.0", + "version": "0.3.1", "description": "A vue cli 3.x plugin for NativeScript-Vue", "main": "index.js", "files": [ pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy