7
Version
4.5.0
Environment info-
package.json
{ "name": "vue-temp-2021-3-8", "version": "0.1.0", "private": true, "scripts": { "serve": "vue-cli-service serve && webpack-dev-server --open", "build": "vue-cli-service build", "build:test": "vue-cli-service build --mode test", "build:production": "vue-cli-service build --mode production", "build:analyzer": "vue-cli-service build --mode analyzer" }, "dependencies": { "core-js": "^3.6.5", "vue": "^2.6.11", "vue-router": "^3.2.0", "vuex": "^3.4.0", "webpack-bundle-analyzer": "^4.4.1" }, "devDependencies": { "@vue/cli-plugin-babel": "~4.5.0", "@vue/cli-plugin-router": "~4.5.0", "@vue/cli-plugin-vuex": "~4.5.0", "@vue/cli-service": "~4.5.0", "axios": "^0.21.1", "babel-plugin-component": "^1.1.1", "element-ui": "^2.15.1", "mockjs": "^1.1.0", "node-sass": "^4.12.0", "nprogress": "^0.2.0", "postcss-pxtorem": "^5.1.1", "sass-loader": "^8.0.2", "vue-template-compiler": "^2.6.11", "vuex-persistedstate": "^4.0.0-beta.3", "webpack-dev-server": "^4.2.1" } }
-
vue.config.js
What is expected?devServer: { port: 8080, host: "0.0.0.0", https: false, // 自动启动浏览器 open: false, hot: true, },
热更新成功
热更新样式css失效