Skip to content

Commit

Permalink
chore: setup autoprefixer
Browse files Browse the repository at this point in the history
  • Loading branch information
khmm12 committed Jun 20, 2024
1 parent 4381eae commit 8c10630
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 0 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@types/node": "^20.14.6",
"@vitest/coverage-v8": "^1.6.0",
"@wyw-in-js/vite": "^0.5.3",
"autoprefixer": "^10.4.19",
"browserslist": "^4.23.1",
"browserslist-to-esbuild": "^2.1.1",
"eslint": "8.57.0",
Expand Down
36 changes: 36 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { fileURLToPath } from 'node:url'
import linaria from '@wyw-in-js/vite'
import autoprefixer from 'autoprefixer'
import browserslistToEsbuild from 'browserslist-to-esbuild'
import Stylis from 'stylis'
import { defineConfig } from 'vite'
Expand All @@ -19,6 +20,11 @@ export default defineConfig((config) => ({
'@test': fileURLToPath(new URL('./test-support', import.meta.url)),
},
},
css: {
postcss: {
plugins: [autoprefixer()],
},
},
plugins: [
solidPlugin({ hot: config.mode === 'development' }),
linaria({
Expand Down

0 comments on commit 8c10630

Please sign in to comment.