From 83a0c533341e131abb91b609bcb5fe9c15a55463 Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Fri, 7 Jul 2023 11:23:57 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E5=BC=BA=E4=BE=9D=E8=B5=96?= =?UTF-8?q?=E7=9A=84node-sass?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- rd.md | 23 +++++++++++++++++++++++ src/views/college/detail.vue | 2 +- src/views/contract/exchange-store.vue | 2 +- src/views/forgotPwd/index.vue | 2 +- src/views/notice/detail.vue | 2 +- src/views/option/index.vue | 2 +- src/views/otc/ad.vue | 2 +- src/views/otc/index.vue | 2 +- src/views/otc/order.vue | 2 +- src/views/profile/certification.vue | 4 ++-- src/views/purchase/index.vue | 2 +- src/views/wallet/address.vue | 2 +- src/views/wallet/exchange-assets.vue | 4 ++-- 13 files changed, 37 insertions(+), 14 deletions(-) create mode 100644 rd.md diff --git a/rd.md b/rd.md new file mode 100644 index 0000000..733aa44 --- /dev/null +++ b/rd.md @@ -0,0 +1,23 @@ + + +## 变更记录 + +[node-sass 替换为 sass](https://blog.csdn.net/weixin_41223575/article/details/128687533) + +node-sass 替换为 sass +原因:安装 node-sass 的项目依赖 node 的版本,维护的项目依赖的 node 版本和自己电脑安装的 node 版本不一致的问题(没必要一直升级 node 版本,把时间花在搞环境上)。 + +方案: +``` +1.要么电脑安装 nvm 管理切换不同的 node 版本,切换还是不太方便,而且不能同时启动依赖 node 版本不一样的两个项目。 + +2.项目的依赖不应该再依赖 node 的版本,比如 node-sass 这种只用于开发环境的依赖项,所以把 node-sass 替换为 sass(推荐)。 + +步骤:卸载 node-sass ,安装 sass,项目全局搜索 ::v-deep , 把 ::v-deep 替换为 ::v-deep。 + +1.卸载 node-sass:npm uninstall node-sass + +2.安装 sass:npm install sass --save-dev + +3.全局搜索替换:::v-deep 替换为 ::v-deep +``` \ No newline at end of file diff --git a/src/views/college/detail.vue b/src/views/college/detail.vue index 179f464..29562a1 100644 --- a/src/views/college/detail.vue +++ b/src/views/college/detail.vue @@ -78,7 +78,7 @@ export default { diff --git a/src/views/forgotPwd/index.vue b/src/views/forgotPwd/index.vue index 9a44380..161e9a2 100644 --- a/src/views/forgotPwd/index.vue +++ b/src/views/forgotPwd/index.vue @@ -112,7 +112,7 @@ export default {