This commit is contained in:
kongduo
2026-06-11 18:45:44 +08:00
parent f006955a77
commit ca23283c6e
26 changed files with 1656 additions and 232 deletions

View File

@@ -10,6 +10,7 @@ import VueFilePathPlugin from './vitePlugin/componentName/index.js'
import { svgBuilder } from 'vite-auto-import-svg'
import { AddSecret } from './vitePlugin/secret'
import UnoCSS from '@unocss/vite'
import autoprefixer from 'autoprefixer'
// @see https://cn.vitejs.dev/config/
export default ({ mode }) => {
@@ -59,6 +60,13 @@ export default ({ mode }) => {
'process.env': {}
},
css: {
postcss: {
plugins: [
autoprefixer({
overrideBrowserslist: ['Android > 39', 'Chrome >= 60', 'Safari >= 10.1', 'iOS >= 10.3', 'Firefox >= 54', 'Edge >= 15']
})
]
},
preprocessorOptions: {
scss: {
api: 'modern-compiler' // or "modern"