Skip to content

Commit

Permalink
feat: inline postcss config in Vite 5 config
Browse files Browse the repository at this point in the history
  • Loading branch information
kingyue737 committed Nov 20, 2023
1 parent ccaa426 commit 8445a5e
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 129 deletions.
2 changes: 0 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,13 +51,11 @@
"flush-promises": "^1.0.2",
"jsdom": "^22.1.0",
"msw": "^2.0.8",
"postcss-load-config": "github:brc-dd/postcss-load-config",
"postcss-preset-env": "^9.3.0",
"prettier": "^3.1.0",
"sass": "~1.32.13",
"start-server-and-test": "^2.0.3",
"terser": "^5.24.0",
"ts-node": "^10.9.1",
"typescript": "^5.2.2",
"unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2",
Expand Down
118 changes: 0 additions & 118 deletions pnpm-lock.yaml

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

8 changes: 0 additions & 8 deletions postcss.config.mts

This file was deleted.

10 changes: 9 additions & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,13 @@
{
"path": "./tsconfig.cypress.json"
}
]
],
"ts-node": {
"transpileOnly": true,
"compilerOptions": {
"module": "ESNext",
"lib": ["es2023"],
"target": "es2022"
}
}
}
4 changes: 4 additions & 0 deletions vite.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import Layouts from 'vite-plugin-vue-layouts'
import Inspect from 'vite-plugin-inspect'
import VueI18n from '@intlify/unplugin-vue-i18n/vite'
import browserslistToEsbuild from 'browserslist-to-esbuild'
import postcssPresetEnv from 'postcss-preset-env'
import Modify from '@kingyue/rollup-plugin-modify'
import * as mdicons from '@mdi/js'

Expand Down Expand Up @@ -113,6 +114,9 @@ export default defineConfig({
].join('\n'),
},
},
postcss: {
plugins: [postcssPresetEnv({ stage: 3 })],
},
},
resolve: {
alias: {
Expand Down

0 comments on commit 8445a5e

Please sign in to comment.