Move PostCSS config to package.json

pull/46/head
Nikita Karamov 2023-01-25 18:49:04 +01:00
parent 6453f15d70
commit 8a24871a0d
No known key found for this signature in database
GPG Key ID: 41D6F71EE78E77CD
3 changed files with 13 additions and 19 deletions

View File

@ -10,17 +10,11 @@
}, },
"overrides": [ "overrides": [
{ {
"files": ["postcss.config.js", "vite.config.js"], "files": ["vite.config.js"],
"env": { "env": {
"node": true, "node": true,
"browser": false "browser": false
} }
},
{
"files": ["postcss.config.js"],
"rules": {
"unicorn/prefer-module": 0
}
} }
] ]
} }

View File

@ -66,6 +66,14 @@
"size-limit": "^8.1.0", "size-limit": "^8.1.0",
"vite": "^4.0.4" "vite": "^4.0.4"
}, },
"postcss": {
"plugins": {
"postcss-css-variables": {},
"postcss-calc": {},
"autoprefixer": {},
"postcss-csso": {}
}
},
"size-limit": [ "size-limit": [
{ {
"limit": "7 KB", "limit": "7 KB",
@ -81,6 +89,9 @@
}, },
"clean-publish": { "clean-publish": {
"withoutPublish": true, "withoutPublish": true,
"tempDir": "package" "tempDir": "package",
"fields": [
"postcss"
]
} }
} }

View File

@ -1,11 +0,0 @@
module.exports = {
map: {
inline: false,
},
plugins: [
require("postcss-css-variables"),
require("postcss-calc"),
require("autoprefixer"),
require("postcss-csso"),
],
};