0
点赞
收藏
分享

微信扫一扫

给nuxt3基础scss模块

安装依赖

yarn add -D sass

配置

如果你有公共的scss文件,则需要在nuxt的配置文件中添加scss:

// nuxt.config.ts
export default defineNuxtConfig({
  // more  
  css: [
    // SCSS file in the project
    "~/assets/style/main.scss", // you should add main.scss somewhere in your app
  ],
})

博客中所涉及到的图片都有版权,请谨慎使用



举报

相关推荐

0 条评论