引用:https://blog.csdn.net/weiliang_66/article/details/132469597
shell
npm install sass -d
配置vite.config.js:
shell
css: {
preprocessorOptions: {
scss: {
additionalData:'@import "@/assets/styles/main.scss";'
}
}
}
创建对应的 main.sass