preprocessorOptions: {
scss: {
additionalData: `@use "./src/assets/scss/style.scss" as *;@use "./src/assets/scss/index.scss" as *;@use "./src/assets/scss/element-theme.scss";`,
}
}
index.scss不起作用,在组件中加上
<style lang="scss">
//
</style>
就可以了,原理不知
标签:scss,src,use,assets,不起作用,ts,vite From: https://www.cnblogs.com/BULE-bule/p/16824683.html