Files
wot-uniapp/vite.config.ts
李琦 f36c2ae71e 1. 小程序端
2. 视频优化
2026-07-30 14:11:26 +08:00

28 lines
616 B
TypeScript

import { fileURLToPath, URL } from 'node:url'
import { defineConfig } from 'vite'
import Components from '@uni-helper/vite-plugin-uni-components'
import Uni from '@uni-helper/plugin-uni'
import { WotResolver } from './src/resolvers/wot-ui-resolver'
export default defineConfig({
resolve: {
alias: {
'@': fileURLToPath(new URL('./src', import.meta.url)),
},
},
css: {
preprocessorOptions: {
scss: {
silenceDeprecations: ['legacy-js-api', 'import'],
},
},
},
plugins: [
Components({
dts: true,
resolvers: [WotResolver()],
}),
Uni(),
],
})