File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change 3131 },
3232 "devDependencies" : {
3333 "@vitejs/plugin-vue" : " ^4.2.3" ,
34+ "autoprefixer" : " ^10.4.16" ,
3435 "eslint" : " ^8.50.0" ,
3536 "eslint-plugin-vue" : " ^9.17.0" ,
37+ "postcss" : " ^8.4.30" ,
3638 "sass" : " ^1.68.0" ,
3739 "vite" : " ^4.4.5"
3840 }
Original file line number Diff line number Diff line change 11import { defineConfig , loadEnv } from 'vite'
22import vue from '@vitejs/plugin-vue'
33import path from 'node:path'
4+ import autoprefixer from 'autoprefixer'
45
56export default defineConfig ( ( { mode } ) => {
67 // Load .env
@@ -9,6 +10,13 @@ export default defineConfig(({ mode }) => {
910
1011 return {
1112 plugins : [ vue ( ) ] ,
13+ css : {
14+ postcss : {
15+ plugins : [
16+ autoprefixer ( { } ) // add options if needed
17+ ] ,
18+ }
19+ } ,
1220 resolve : {
1321 alias : [
1422 // webpack path resolve to vitejs
You can’t perform that action at this time.
0 commit comments