[Build] update webpack.dev.js

This commit is contained in:
陈嘉涵 2019-08-02 15:25:38 +08:00
parent e57bbeceeb
commit dc1b0ee2e1

View File

@ -13,16 +13,11 @@ module.exports = {
publicPath: '/', publicPath: '/',
chunkFilename: 'async_[name].js' chunkFilename: 'async_[name].js'
}, },
stats: {
modules: false,
children: false
},
devServer: { devServer: {
open: true, open: true,
progress: true, progress: true,
host: '0.0.0.0', host: '0.0.0.0',
stats: 'errors-only', stats: 'errors-only'
clientLogLevel: 'warning'
}, },
resolve: { resolve: {
extensions: ['.js', '.ts', '.tsx', '.vue', '.less'] extensions: ['.js', '.ts', '.tsx', '.vue', '.less']
@ -70,7 +65,6 @@ module.exports = {
}, },
plugins: [ plugins: [
new VueLoaderPlugin(), new VueLoaderPlugin(),
// new ProgressBarPlugin(),
new HtmlWebpackPlugin({ new HtmlWebpackPlugin({
chunks: ['vant-docs'], chunks: ['vant-docs'],
template: 'docs/site/desktop/index.html', template: 'docs/site/desktop/index.html',