林场巡检管理
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.

34 rindas
883B

  1. import vue from '@vitejs/plugin-vue'
  2. import Components from 'unplugin-vue-components/vite'
  3. import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
  4. import { createSvgIconsPlugin } from 'vite-plugin-svg-icons'
  5. import { resolve } from 'path'
  6. import VueSetupExtend from 'vite-plugin-vue-setup-extend'
  7. import { unocss } from './unocss'
  8. import { configHtmlPlugin } from './html'
  9. import { configMockPlugin } from './mock'
  10. export function createVitePlugins(viteEnv, isBuild) {
  11. const plugins = [
  12. vue(),
  13. Components({
  14. resolvers: [NaiveUiResolver()]
  15. }),
  16. createSvgIconsPlugin({
  17. iconDirs: [resolve(process.cwd(), 'src/assets/icon')],
  18. symbolId: 'icon-[dir]-[name]'
  19. }),
  20. VueSetupExtend(),
  21. unocss(),
  22. configHtmlPlugin(viteEnv, isBuild)
  23. ]
  24. viteEnv?.VITE_APP_USE_MOCK && plugins.push(configMockPlugin(isBuild))
  25. return plugins
  26. }