[Doc] deploy to github pages
This commit is contained in:
@@ -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
|
||||
})
|
||||
]
|
||||
|
||||
@@ -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'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user