From 0cb5e8e64820634b88ab421515898e95105ee813 Mon Sep 17 00:00:00 2001 From: Stefan Imhoff Date: Sun, 19 Feb 2023 13:39:16 +0100 Subject: [PATCH] chore: add PostCSS configuration --- package.json | 2 ++ pnpm-lock.yaml | 12 +++++++++--- postcss.config.cjs | 3 +++ 3 files changed, 14 insertions(+), 3 deletions(-) create mode 100644 postcss.config.cjs diff --git a/package.json b/package.json index a591eac..7181a22 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,8 @@ "@astrojs/svelte": "^2.0.1", "@astrojs/tailwind": "^3.0.1", "astro": "^2.0.10", + "autoprefixer": "^10.4.13", + "postcss": "^8.4.21", "svelte": "^3.54.0", "tailwindcss": "^3.0.24" }, diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 715db4f..6e182db 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -5,11 +5,13 @@ specifiers: '@astrojs/svelte': ^2.0.1 '@astrojs/tailwind': ^3.0.1 astro: ^2.0.10 + autoprefixer: ^10.4.13 eslint: ^8.34.0 eslint-config-prettier: ^8.6.0 eslint-plugin-prettier: ^4.2.1 husky: ^8.0.0 lint-staged: ^13.1.1 + postcss: ^8.4.21 prettier: ^2.8.4 prettier-plugin-astro: ^0.8.0 prettier-plugin-organize-imports: ^3.2.2 @@ -27,8 +29,10 @@ dependencies: '@astrojs/svelte': 2.0.1_srabkpdrmffps2vsyx2my6v6uy '@astrojs/tailwind': 3.0.1_jukmciyu6aodegbctarme2zo2y astro: 2.0.10 + autoprefixer: 10.4.13_postcss@8.4.21 + postcss: 8.4.21 svelte: 3.55.1 - tailwindcss: 3.2.6 + tailwindcss: 3.2.6_postcss@8.4.21 devDependencies: eslint: 8.34.0 @@ -166,7 +170,7 @@ packages: autoprefixer: 10.4.13_postcss@8.4.21 postcss: 8.4.21 postcss-load-config: 4.0.1_postcss@8.4.21 - tailwindcss: 3.2.6 + tailwindcss: 3.2.6_postcss@8.4.21 transitivePeerDependencies: - ts-node dev: false @@ -3997,10 +4001,12 @@ packages: '@pkgr/utils': 2.3.1 tslib: 2.5.0 - /tailwindcss/3.2.6: + /tailwindcss/3.2.6_postcss@8.4.21: resolution: {integrity: sha512-BfgQWZrtqowOQMC2bwaSNe7xcIjdDEgixWGYOd6AL0CbKHJlvhfdbINeAW76l1sO+1ov/MJ93ODJ9yluRituIw==} engines: {node: '>=12.13.0'} hasBin: true + peerDependencies: + postcss: ^8.0.9 dependencies: arg: 5.0.2 chokidar: 3.5.3 diff --git a/postcss.config.cjs b/postcss.config.cjs new file mode 100644 index 0000000..aeefe5a --- /dev/null +++ b/postcss.config.cjs @@ -0,0 +1,3 @@ +module.exports = { + plugins: [require('autoprefixer')], +};