mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 11:17:41 +00:00
[Build] update webpack.dev.js
This commit is contained in:
@@ -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',
|
||||||
|
Reference in New Issue
Block a user