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