2025-11-17 15:20:25 +00:00
|
|
|
import { defineConfig } from 'vite'
|
|
|
|
|
import uni from '@dcloudio/vite-plugin-uni'
|
2025-11-15 13:07:57 +00:00
|
|
|
|
2025-11-17 15:20:25 +00:00
|
|
|
export default defineConfig(() => {
|
|
|
|
|
return {
|
|
|
|
|
base: './',
|
|
|
|
|
build: {
|
|
|
|
|
minify: true,
|
|
|
|
|
outDir: 'dist',
|
|
|
|
|
},
|
|
|
|
|
server: {
|
|
|
|
|
port: '80'
|
|
|
|
|
},
|
|
|
|
|
plugins: [
|
|
|
|
|
uni()
|
|
|
|
|
],
|
|
|
|
|
exclude: [
|
|
|
|
|
/\/README\.md$/,
|
|
|
|
|
],
|
|
|
|
|
css: {
|
|
|
|
|
preprocessorOptions: {
|
|
|
|
|
scss: {
|
|
|
|
|
api: 'modern-compiler'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|