add autoprefixer

This commit is contained in:
kuaifan 2023-02-25 15:30:20 +08:00
parent fe8450d48a
commit 2dd7250616
2 changed files with 10 additions and 2 deletions

View File

@ -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",

10
vite.config.js vendored
View File

@ -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
]
}
}
};
});