26 lines
727 B
TypeScript
26 lines
727 B
TypeScript
import { defineConfig } from 'vite'
|
|
import uni from '@dcloudio/vite-plugin-uni'
|
|
import tangDetectiveNativePlugin from './build/tang-detective-native-plugin.mjs'
|
|
import { API_BASE_URL } from './config/api.js'
|
|
|
|
export default defineConfig({
|
|
plugins: [uni(), tangDetectiveNativePlugin({ apiBaseUrl: API_BASE_URL })],
|
|
css: {
|
|
preprocessorOptions: {
|
|
scss: {
|
|
silenceDeprecations: ['legacy-js-api', 'import'],
|
|
},
|
|
},
|
|
},
|
|
server: {
|
|
watch: {
|
|
ignored: [
|
|
'**/node_modules/**',
|
|
'**/.git/**',
|
|
'**/dist/**',
|
|
'**/unpackage/**',
|
|
],
|
|
},
|
|
},
|
|
})
|