From 4b1375459707091aa0b20c7221b662c83e69b3e1 Mon Sep 17 00:00:00 2001 From: Nikita Karamov Date: Thu, 10 Feb 2022 21:44:22 +0100 Subject: [PATCH] Extract PostCSS config --- postcss.config.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 postcss.config.js diff --git a/postcss.config.js b/postcss.config.js new file mode 100644 index 0000000..0b0d275 --- /dev/null +++ b/postcss.config.js @@ -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, + }), + ], +};