Please note that in running mode, due to log output, sourcemap, and uncompressed source code, the performance and package size are not as good as release mode.
Vite is compiled on demand, and clicking on an uncompiled page at runtime will compile first and then load, resulting in a slower display, and there is no such problem after release.
Compiler version: 4.56(vue3)
Compiling...
Re-optimizing dependencies because lockfile has changed
vite v5.2.8 dev server running at:
➜ Local: http://localhost:5173/
➜ Network: http://192.168.1.7:5173/
➜ Network: http://172.18.0.1:5173/
➜ Network: http://172.28.48.1:5173/
ready in 1060ms.
Deprecation Warning [legacy-js-api]: The legacy JS API is deprecated and will be removed in Dart Sass 2.0.0.
More info: https://sass-lang.com/d/legacy-js-api
Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
╷
16 │ @import "@/uni_modules/vk-uview-ui/theme.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\App.vue 16:9 root stylesheet
Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
╷
80 │ @import "./uni_modules/vk-uview-ui/index.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\App.vue 80:10 root stylesheet
Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
╷
2 │ @import "./libs/css/common.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\uni_modules\vk-uview-ui\index.scss 2:9 @import
src\App.vue 80:10 root stylesheet
Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
╷
3 │ @import "./libs/css/color.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^
╵
src\uni_modules\vk-uview-ui\index.scss 3:9 @import
src\App.vue 80:10 root stylesheet
Deprecation Warning [import]: Sass @import rules are deprecated and will be removed in Dart Sass 3.0.0.
More info and automated migrator: https://sass-lang.com/d/import
╷
7 │ @import "./libs/css/style.vue.scss";
│ ^^^^^^^^^^^^^^^^^^^^^^^^^^^
╵
src\uni_modules\vk-uview-ui\index.scss 7:9 @import
src\App.vue 80:10 root stylesheet
Warning: 1 repetitive deprecation warnings omitted.
b***@qq.com (作者)
上周都正常的,一直都正常打包,也没sass警告,这周就更新了下依赖,就一直提示这个,把依赖还原回去,也还是提示sass警告,回不去了。
2025-03-25 08:58
恭喜n发财
回复 b***@qq.com: 是这样的,不过升级sass和sassloader可以没有警告,但是会有其他影响,具体是是啥影响不得知,我也不敢升,警告就警告吧,只能等三方去优化了
2025-03-25 09:03