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 31
31
},
32
32
"devDependencies" : {
33
33
"@vitejs/plugin-vue" : " ^4.2.3" ,
34
+ "autoprefixer" : " ^10.4.16" ,
34
35
"eslint" : " ^8.50.0" ,
35
36
"eslint-plugin-vue" : " ^9.17.0" ,
37
+ "postcss" : " ^8.4.30" ,
36
38
"sass" : " ^1.68.0" ,
37
39
"vite" : " ^4.4.5"
38
40
}
Original file line number Diff line number Diff line change 1
1
import { defineConfig , loadEnv } from 'vite'
2
2
import vue from '@vitejs/plugin-vue'
3
3
import path from 'node:path'
4
+ import autoprefixer from 'autoprefixer'
4
5
5
6
export default defineConfig ( ( { mode } ) => {
6
7
// Load .env
@@ -9,6 +10,13 @@ export default defineConfig(({ mode }) => {
9
10
10
11
return {
11
12
plugins : [ vue ( ) ] ,
13
+ css : {
14
+ postcss : {
15
+ plugins : [
16
+ autoprefixer ( { } ) // add options if needed
17
+ ] ,
18
+ }
19
+ } ,
12
20
resolve : {
13
21
alias : [
14
22
// webpack path resolve to vitejs
You can’t perform that action at this time.
0 commit comments