[Doc] use cdn to speedup site

This commit is contained in:
陈嘉涵
2019-08-02 14:35:10 +08:00
parent 70a014e388
commit 7ae750ec46
6 changed files with 17 additions and 7 deletions
+12
View File
@@ -0,0 +1,12 @@
const path = require('path');
const config = require('./webpack.base.js');
module.exports = Object.assign(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'
}
});