Commit 0753cc09 by Jaxon

chron: 升级 webpack5 后的项目调优

1 parent ee17cbfe
@import "./normalize.scss";
@import "./sprite.scss";
@use "./normalize.scss";
@use "./sprite.scss";
html,
body #app {
color: #333333;
......
......@@ -45,6 +45,7 @@ module.exports = {
},
},
port: 9527, // 端口 dj-scrm-wx-work-lwk
allowedHosts: "all", // 允许所有 Host,解决 WebSocket Invalid Host 错误
// proxy: {
// //配置跨域
// '/api': {
......@@ -66,7 +67,7 @@ module.exports = {
lessOptions: {
modifyVars: {
// 直接覆盖变量
hack: `true; @import "${path.resolve(__dirname, "./src/assets/css/vant-theme.less")}";`,
hack: `true; @import "${path.resolve(__dirname, "./src/assets/css/vant-theme.less")}";`,
},
},
},
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!