build: split chunk (#4303)

This commit is contained in:
neverland
2019-08-30 16:05:28 +08:00
committed by GitHub
parent a94d49f12a
commit d029a67cd1
7 changed files with 64 additions and 38 deletions

View File

@@ -1,9 +1,10 @@
const path = require('path');
const config = require('./webpack.dev.js');
const merge = require('webpack-merge');
const config = require('./webpack.base');
const isMinify = process.argv.indexOf('-p') !== -1;
module.exports = Object.assign(config, {
module.exports = merge(config, {
mode: 'production',
entry: {
vant: './es/index.js'