首页 > 其他分享 >vite+ts+scss 设置多个scss公共样式不起作用

vite+ts+scss 设置多个scss公共样式不起作用

时间:2022-10-25 14:25:36浏览次数:77  
标签:scss src use assets 不起作用 ts vite

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

相关文章