2023-08-16 12:40:00 +00:00
|
|
|
import { defineConfig } from 'vite'
|
2023-08-12 15:44:27 +00:00
|
|
|
import uni from '@dcloudio/vite-plugin-uni'
|
|
|
|
|
|
|
|
|
|
export default defineConfig(() => {
|
|
|
|
|
return {
|
2023-08-16 12:40:00 +00:00
|
|
|
base: './',
|
2023-08-12 15:44:27 +00:00
|
|
|
build: {
|
|
|
|
|
minify: true,
|
2023-08-16 12:40:00 +00:00
|
|
|
outDir: 'dist',
|
2023-08-12 15:44:27 +00:00
|
|
|
},
|
|
|
|
|
server: {
|
2024-01-17 18:45:14 +00:00
|
|
|
port: '80'
|
2023-08-12 15:44:27 +00:00
|
|
|
},
|
|
|
|
|
plugins: [
|
|
|
|
|
uni()
|
|
|
|
|
],
|
2024-11-08 01:00:58 +00:00
|
|
|
exclude: [
|
2023-09-01 03:05:53 +00:00
|
|
|
/\/README\.md$/,
|
2024-11-08 01:00:58 +00:00
|
|
|
],
|
|
|
|
|
css: {
|
|
|
|
|
preprocessorOptions: {
|
|
|
|
|
scss: {
|
|
|
|
|
api: 'modern-compiler'
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
2023-08-12 15:44:27 +00:00
|
|
|
}
|
2023-08-27 10:16:10 +00:00
|
|
|
})
|