From 2a931cbad65c6a9cca1e7edf0ab7b8eec2667cce Mon Sep 17 00:00:00 2001 From: Clark Du Date: Tue, 13 Mar 2018 09:46:37 +0800 Subject: [PATCH] refactor: remove vendor --- lib/builder/webpack/client.config.js | 3 +-- lib/common/options.js | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/builder/webpack/client.config.js b/lib/builder/webpack/client.config.js index 0c656c9598..fb9d32eded 100644 --- a/lib/builder/webpack/client.config.js +++ b/lib/builder/webpack/client.config.js @@ -82,8 +82,7 @@ module.exports = function webpackClientConfig() { // Optimization config.optimization = { splitChunks: { - chunks: 'all', - filename: this.getFileName('vendor') + chunks: 'all' } } diff --git a/lib/common/options.js b/lib/common/options.js index b9264f2681..6393800f8e 100644 --- a/lib/common/options.js +++ b/lib/common/options.js @@ -206,7 +206,6 @@ Options.defaults = { filenames: { css: '[name].[contenthash].css', manifest: 'manifest.[hash].js', - vendor: 'vendor.[chunkhash].js', app: '[name].[chunkhash].js', chunk: '[name].[chunkhash].js' },