mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-08-07 21:19:45 +08:00
[Build] optimize config (#1167)
This commit is contained in:
parent
ea76777ec7
commit
a5413aebfa
@ -59,14 +59,14 @@ module.exports = {
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.md/,
|
test: /\.md$/,
|
||||||
use: [
|
use: [
|
||||||
'vue-loader',
|
'vue-loader',
|
||||||
'fast-vue-md-loader'
|
'fast-vue-md-loader'
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
test: /\.(ttf|svg)(\?.*)?$/,
|
test: /\.(ttf|svg)$/,
|
||||||
loader: 'url-loader'
|
loader: 'url-loader'
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -9,7 +9,6 @@ module.exports = Object.assign(config, {
|
|||||||
path: path.join(__dirname, '../docs/dist'),
|
path: path.join(__dirname, '../docs/dist'),
|
||||||
publicPath: 'https://img.yzcdn.cn/zanui/vant/',
|
publicPath: 'https://img.yzcdn.cn/zanui/vant/',
|
||||||
filename: '[name].[hash:8].js',
|
filename: '[name].[hash:8].js',
|
||||||
umdNamedDefine: true,
|
|
||||||
chunkFilename: 'async_[name].[chunkhash:8].js'
|
chunkFilename: 'async_[name].[chunkhash:8].js'
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user