Replace PostCSS workflow with Lightning CSS

This commit is contained in:
Nikita Karamov 2023-03-20 20:26:21 +01:00
parent 370d66c755
commit 5c50d1e0ee
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
2 changed files with 6 additions and 14 deletions

View File

@ -53,19 +53,16 @@
},
"devDependencies": {
"@size-limit/preset-small-lib": "^8.2.4",
"autoprefixer": "^10.4.14",
"clean-publish": "^4.0.1",
"eslint": "^8.36.0",
"eslint-config-prettier": "^8.8.0",
"eslint-plugin-unicorn": "^46.0.0",
"postcss": "^8.4.19",
"postcss-calc": "^8.2.4",
"postcss-css-variables": "^0.18.0",
"postcss-csso": "^6.0.1",
"prettier": "^2.8.5",
"size-limit": "^8.2.4",
"vite": "^4.2.1"
"vite": "^4.2.1",
"vite-plugin-lightningcss": "^0.0.5"
},
"browserslist": "cover 95%, last 2 versions, Firefox ESR, not dead",
"eslintConfig": {
"env": {
"browser": true
@ -91,14 +88,6 @@
}
]
},
"postcss": {
"plugins": {
"postcss-css-variables": {},
"postcss-calc": {},
"autoprefixer": {},
"postcss-csso": {}
}
},
"size-limit": [
{
"limit": "7 KB",

View File

@ -1,6 +1,8 @@
import { defineConfig } from "vite";
import * as path from "node:path";
import lightningcss from "vite-plugin-lightningcss";
export default defineConfig({
build: {
lib: {
@ -24,4 +26,5 @@ export default defineConfig({
css: {
devSourcemap: true,
},
plugins: [lightningcss({})],
});