From 1dce37fde9e4d96209b68964506e1538aa73d8b6 Mon Sep 17 00:00:00 2001 From: Pooya Parsa <pooya@pi0.ir> Date: Sat, 17 Mar 2018 21:50:15 +0330 Subject: [PATCH 1/3] ci --- appveyor.yml | 2 +- package.json | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index bab4179e71..ae646e0092 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -22,7 +22,7 @@ test_script: - npm --version - yarn --version # run tests - - yarn test-appveyor + - yarn test # Don't actually build. build: off diff --git a/package.json b/package.json index 4788519e51..874993574b 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,7 @@ ] }, "scripts": { - "test": "npm run lint && nyc ava --fail-fast -v -T 60000 test/ -- && nyc report --reporter=html", - "test-appveyor": "yarn test", + "test": "npm run lint && nyc ava -v test -- && nyc report --reporter=html", "coverage": "nyc report --reporter=text-lcov > coverage.lcov && codecov", "lint": "eslint --ext .js,.vue bin/* build/ lib/ test/ examples/", "precommit": "npm run lint", From f537b0fdcb80553c8d937ab0aee6b4f12b45774d Mon Sep 17 00:00:00 2001 From: Pooya Parsa <pooya@pi0.ir> Date: Sun, 18 Mar 2018 11:21:17 +0330 Subject: [PATCH 2/3] revert spa fix --- lib/builder/webpack/client.config.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/builder/webpack/client.config.js b/lib/builder/webpack/client.config.js index 1f9ffb2435..16e3dca3f2 100644 --- a/lib/builder/webpack/client.config.js +++ b/lib/builder/webpack/client.config.js @@ -14,8 +14,6 @@ const ExtractTextPlugin = require('extract-text-webpack-plugin') const debug = Debug('nuxt:build') debug.color = 2 // Force green color -const isWindows = /^win/.test(process.platform) - /* |-------------------------------------------------------------------------- | Webpack Client Config @@ -91,7 +89,7 @@ module.exports = function webpackClientConfig() { config.optimization.splitChunks = { chunks: 'all', // TODO: remove spa after https://github.com/jantimon/html-webpack-plugin/issues/878 solved - name: this.options.dev || (this.options.mode === 'spa' && isWindows), + name: this.options.dev || this.options.mode === 'spa', // Explicit cache groups cacheGroups: { From 3481ceb05967c0ace414ed151c5e09da57f04a53 Mon Sep 17 00:00:00 2001 From: Pooya Parsa <pooya@pi0.ir> Date: Sun, 18 Mar 2018 11:22:37 +0330 Subject: [PATCH 3/3] temporary disable runtimeChunk --- lib/builder/webpack/client.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/builder/webpack/client.config.js b/lib/builder/webpack/client.config.js index 16e3dca3f2..c9002a8c48 100644 --- a/lib/builder/webpack/client.config.js +++ b/lib/builder/webpack/client.config.js @@ -126,7 +126,7 @@ module.exports = function webpackClientConfig() { } // Create additional runtime chunk for cache boosting - config.optimization.runtimeChunk = true + // config.optimization.runtimeChunk = true // CSS extraction const extractCSS = this.options.build.extractCSS