[Doc] deploy to github pages

This commit is contained in:
陈嘉涵
2018-05-28 18:49:41 +08:00
parent 155930192b
commit 0cde378373
6 changed files with 10 additions and 11 deletions
+5 -1
View File
@@ -14,6 +14,10 @@ module.exports = {
publicPath: '/',
chunkFilename: 'async_[name].js'
},
stats: {
modules: false,
children: false
},
serve: {
open: true,
host: '0.0.0.0',
@@ -83,7 +87,7 @@ module.exports = {
new HtmlWebpackPlugin({
chunks: ['vant-mobile'],
template: 'docs/src/index.tpl',
filename: 'examples.html',
filename: 'mobile.html',
inject: true
})
]
+1 -1
View File
@@ -7,7 +7,7 @@ module.exports = Object.assign(config, {
mode: 'production',
output: {
path: path.join(__dirname, '../docs/dist'),
publicPath: 'https://img.yzcdn.cn/zanui/vant/',
publicPath: 'https://youzan.github.io/vant/',
filename: '[name].[hash:8].js',
chunkFilename: 'async_[name].[chunkhash:8].js'
}