import AutoImport from 'unplugin-auto-import/vite'
import Components from 'unplugin-vue-components/vite'
import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
// https://nuxt.com/docs/api/configuration/nuxt-config
export default defineNuxtConfig({
  devtools: { enabled: true },

  plugins: [
    { src: './public/myWow.js', mode: 'client' },
  ],
  css: [
    '@/assets/css/root.scss',
    // 直接加载一个 Node.js 模块。（在这里它是一个 Sass 文件）
    //   'bulma',
    // 项目里要使用的 SCSS 文件
    '@/assets/css/common.scss',
    'animate.css'
  ],

  modules: ["nuxtjs-naive-ui"],
 
  vite: {
    plugins: [
      AutoImport({
        imports: [
          {
            'naive-ui': [
              'NCarousel',
            ]
          }
        ]
      }),
      Components({
        resolvers: [NaiveUiResolver()]
      })
    ]
  }
})


