- import { defineConfig } from 'vite'
- export default defineConfig({
- server: {
- port: 5173,
- host: '0.0.0.0'
- },
- css: {
- preprocessorOptions: {
- scss: {
- additionalData: `
- @use "@/assets/style/element/index.scss" as *;
- @use "@/assets/style/base.scss" as *;
- `,
- api: 'modern-compiler',
- },
- }, // 全局scss样式
- },
- resolve: {
- alias: {
- '@': fileURLToPath(new URL('./src', import.meta.url))
- },
- }, // 路径别名
- })
复制代码
webpack配置全局scss_怎么在webpack中全局使用scss-CSDN博客文章浏览阅读1.2k次。【代码】webpack配置全局scss。_怎么在webpack中全局使用scsshttps://blog.csdn.net/m0_74149462/article/details/134507679
免责声明:如果侵犯了您的权益,请联系站长,我们会及时删除侵权内容,谢谢合作!更多信息从访问主页:qidao123.com:ToB企服之家,中国第一个企服评测及商务社交产业平台。 |