mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 02:31:21 +00:00
[Build] revert site to webpack config (#3747)
This commit is contained in:
12
build/webpack.doc.js
Normal file
12
build/webpack.doc.js
Normal file
@@ -0,0 +1,12 @@
|
||||
const path = require('path');
|
||||
const config = require('./webpack.dev.js');
|
||||
|
||||
module.exports = Object.assign(config, {
|
||||
mode: 'production',
|
||||
output: {
|
||||
path: path.join(__dirname, '../docs/dist'),
|
||||
publicPath: 'https://youzan.github.io/vant/',
|
||||
filename: '[name].[hash:8].js',
|
||||
chunkFilename: 'async_[name].[chunkhash:8].js'
|
||||
}
|
||||
});
|
Reference in New Issue
Block a user