[Doc] build: use webpack-dev-server

This commit is contained in:
陈嘉涵 2019-05-05 14:21:56 +08:00
parent 0e45563c93
commit 6d0b5e5a0d
3 changed files with 738 additions and 872 deletions

View File

@ -18,16 +18,11 @@ module.exports = {
modules: false,
children: false
},
serve: {
devServer: {
open: true,
host: '0.0.0.0',
devMiddleware: {
logLevel: 'warn'
},
hotClient: {
logLevel: 'warn',
allEntries: true
}
stats: 'errors-only',
clientLogLevel: 'warning'
},
resolve: {
extensions: ['.js', '.ts', '.tsx', '.vue', '.css'],

View File

@ -15,7 +15,7 @@
],
"scripts": {
"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\"",
"build:entry": "node build/build-entry.js",
"build:components": "node build/build-components.js --color",
@ -61,7 +61,8 @@
"@babel/runtime": "^7.4.3",
"@vant/icons": "1.1.7",
"@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": {
"vue": ">= 2.5.0"
@ -125,8 +126,7 @@
"vue-template-compiler": "2.6.10",
"vue-template-es2015-compiler": "^1.9.1",
"webpack": "^4.30.0",
"webpack-cli": "^3.3.0",
"webpack-serve": "^2.0.3"
"webpack-cli": "^3.3.2"
},
"vetur": {
"tags": "vetur/tags.json",

1591
yarn.lock

File diff suppressed because it is too large Load Diff