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
+13
View File
@@ -0,0 +1,13 @@
const path = require('path');
const merge = require('webpack-merge');
const config = require('./webpack.site.dev');
module.exports = merge(config, {
mode: 'production',
output: {
path: path.join(__dirname, '../docs/dist'),
publicPath: 'https://b.yzcdn.cn/vant/',
filename: '[name].[hash:8].js',
chunkFilename: 'async_[name].[chunkhash:8].js'
}
});