mirror of
https://gitee.com/newgateway/vtj.git
synced 2026-05-31 14:10:26 +08:00
12 lines
298 B
TypeScript
12 lines
298 B
TypeScript
import { defineConfig, type Plugin } from 'vite';
|
|
import { createViteConfig } from '@vtj/cli';
|
|
import uni from '@dcloudio/vite-plugin-uni';
|
|
|
|
export default process.env.PREVIEW
|
|
? createViteConfig({
|
|
outDir: 'dist/build/h5'
|
|
})
|
|
: defineConfig({
|
|
plugins: [uni() as Plugin[]]
|
|
});
|