Extract PostCSS config

pull/45/head
Nikita Karamov 2022-02-10 21:44:22 +01:00
parent 1b151450cd
commit 4b13754597
No known key found for this signature in database
GPG Key ID: 3C8E688C96EEB9C9
1 changed files with 21 additions and 0 deletions

21
postcss.config.js Normal file
View File

@ -0,0 +1,21 @@
const pkg = require("./package.json");
const bannerText = `${pkg.name} v${pkg.version}`;
module.exports = {
map: {
inline: false,
},
plugins: [
require("postcss-css-variables"),
require("postcss-calc"),
require("cssnano")({
preset: "default",
}),
require("autoprefixer"),
require("postcss-banner")({
banner: bannerText,
important: true,
inline: true,
}),
],
};