Skip to content

Commit 3118878

Browse files
committed
Add CSS autoprefixer.
1 parent 846e8fb commit 3118878

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

Diff for: .browserslistrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
> 1%
2-
last 2 versions
3-
not ie <= 8
2+
last 3 versions
3+
not dead

Diff for: vite.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import { defineConfig } from 'vite'
22
import Vue from '@vitejs/plugin-vue'
33
import { resolve } from 'path'
44
import Delete from 'rollup-plugin-delete'
5+
import autoprefixer from 'autoprefixer'
56

67
const build = process.env.BUNDLE ? {
78
lib: {
@@ -48,6 +49,9 @@ export default defineConfig({
4849
scss: {
4950
additionalData: '@import "@/scss/_variables.scss";'
5051
}
52+
},
53+
postcss: {
54+
plugins: [autoprefixer]
5155
}
5256
},
5357
build

0 commit comments

Comments
 (0)