mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-05 19:41:42 +08:00
[Doc] build: use webpack-dev-server
This commit is contained in:
parent
0e45563c93
commit
6d0b5e5a0d
@ -18,16 +18,11 @@ module.exports = {
|
|||||||
modules: false,
|
modules: false,
|
||||||
children: false
|
children: false
|
||||||
},
|
},
|
||||||
serve: {
|
devServer: {
|
||||||
open: true,
|
open: true,
|
||||||
host: '0.0.0.0',
|
host: '0.0.0.0',
|
||||||
devMiddleware: {
|
stats: 'errors-only',
|
||||||
logLevel: 'warn'
|
clientLogLevel: 'warning'
|
||||||
},
|
|
||||||
hotClient: {
|
|
||||||
logLevel: 'warn',
|
|
||||||
allEntries: true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
resolve: {
|
resolve: {
|
||||||
extensions: ['.js', '.ts', '.tsx', '.vue', '.css'],
|
extensions: ['.js', '.ts', '.tsx', '.vue', '.css'],
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"bootstrap": "yarn || npm i",
|
"bootstrap": "yarn || npm i",
|
||||||
"dev": "npm run build:entry && webpack-serve --config build/webpack.dev.js",
|
"dev": "npm run build:entry && webpack-dev-server --config build/webpack.dev.js",
|
||||||
"lint": "eslint ./packages --ext .js,.vue,.ts,.tsx && stylelint \"packages/*.less\"",
|
"lint": "eslint ./packages --ext .js,.vue,.ts,.tsx && stylelint \"packages/*.less\"",
|
||||||
"build:entry": "node build/build-entry.js",
|
"build:entry": "node build/build-entry.js",
|
||||||
"build:components": "node build/build-components.js --color",
|
"build:components": "node build/build-components.js --color",
|
||||||
@ -61,7 +61,8 @@
|
|||||||
"@babel/runtime": "^7.4.3",
|
"@babel/runtime": "^7.4.3",
|
||||||
"@vant/icons": "1.1.7",
|
"@vant/icons": "1.1.7",
|
||||||
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0-beta.3",
|
"@vue/babel-helper-vue-jsx-merge-props": "^1.0.0-beta.3",
|
||||||
"vue-lazyload": "1.2.3"
|
"vue-lazyload": "1.2.3",
|
||||||
|
"webpack-dev-server": "^3.3.1"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": ">= 2.5.0"
|
"vue": ">= 2.5.0"
|
||||||
@ -125,8 +126,7 @@
|
|||||||
"vue-template-compiler": "2.6.10",
|
"vue-template-compiler": "2.6.10",
|
||||||
"vue-template-es2015-compiler": "^1.9.1",
|
"vue-template-es2015-compiler": "^1.9.1",
|
||||||
"webpack": "^4.30.0",
|
"webpack": "^4.30.0",
|
||||||
"webpack-cli": "^3.3.0",
|
"webpack-cli": "^3.3.2"
|
||||||
"webpack-serve": "^2.0.3"
|
|
||||||
},
|
},
|
||||||
"vetur": {
|
"vetur": {
|
||||||
"tags": "vetur/tags.json",
|
"tags": "vetur/tags.json",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user