index.ts 315 字节
Newer Older
fxy060608's avatar
fxy060608 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
import path from 'path'
import { Plugin } from 'vite'
export function uniNVuePlugin(): Plugin {
  return {
    name: 'vite:uni-app-nvue',
    config() {
      return {
        build: {
          outDir: path.join(process.env.UNI_OUTPUT_DIR, '../.nvue'),
          rollupOptions: {},
        },
      }
    },
  }
}