vant/build/webpack.doc.js
2019-05-21 19:34:27 +08:00

15 lines
369 B
JavaScript

const path = require('path');
const config = require('./webpack.dev.js');
delete config.serve;
module.exports = Object.assign(config, {
mode: 'production',
output: {
path: path.join(__dirname, '../docs/dist'),
publicPath: 'https://youzan.github.io/vant/1.x/',
filename: '[name].[hash:8].js',
chunkFilename: 'async_[name].[chunkhash:8].js'
}
});