diff --git a/package.json b/package.json index 16ea7f362..01374eb91 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ }, "devDependencies": { "@chenfengyuan/vue-qrcode": "^1.0.2", - "@vitejs/plugin-legacy": "^1.8.2", + "autoprefixer": "^10.4.13", "axios": "^0.24.0", "cross-env": "^7.0.3", "css-loader": "^6.7.2", diff --git a/vite.config.js b/vite.config.js index 382cc0d55..2e742afe6 100644 --- a/vite.config.js +++ b/vite.config.js @@ -4,6 +4,7 @@ import {defineConfig, loadEnv} from 'vite' import {createVuePlugin} from 'vite-plugin-vue2'; import vitePluginRequire from 'vite-plugin-require' import vitePluginFileCopy from 'vite-plugin-file-copy'; +import autoprefixer from 'autoprefixer'; const argv = process.argv; const isCmd = argv.includes('fromcmd'); @@ -59,6 +60,13 @@ export default defineConfig(({command, mode}) => { src: resolve(__dirname, 'resources/assets/statics/public'), dest: resolve(__dirname, publicPath) }]), - ] + ], + css: { + postcss: { + plugins: [ + autoprefixer + ] + } + } }; });