From 0f69f07e2b4c1f7d2f359d9eb1dea7205f0748d8 Mon Sep 17 00:00:00 2001 From: Jalil Arfaoui Date: Mon, 15 Jan 2024 22:02:47 +0100 Subject: [PATCH] fix: add autoprefixer --- package-lock.json | 68 +++++++++++++++++++++++++++++++++++++++++++++- package.json | 3 +- postcss.config.mjs | 7 +++++ 3 files changed, 76 insertions(+), 2 deletions(-) create mode 100644 postcss.config.mjs diff --git a/package-lock.json b/package-lock.json index 8da6746..0949732 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,7 +14,8 @@ "contentful": "^10.6.15" }, "devDependencies": { - "@types/node": "^20.10.6" + "@types/node": "^20.10.6", + "autoprefixer": "^10.4.16" } }, "node_modules/@ampproject/remapping": { @@ -1774,6 +1775,43 @@ "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" }, + "node_modules/autoprefixer": { + "version": "10.4.16", + "resolved": "https://registry.npmjs.org/autoprefixer/-/autoprefixer-10.4.16.tgz", + "integrity": "sha512-7vd3UC6xKp0HLfua5IjZlcXvGAGy7cBAXTg2lyQ/8WpNhd6SiZ8Be+xm3FyBSYJx5GKcpRCzBh7RH4/0dnY+uQ==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/autoprefixer" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "dependencies": { + "browserslist": "^4.21.10", + "caniuse-lite": "^1.0.30001538", + "fraction.js": "^4.3.6", + "normalize-range": "^0.1.2", + "picocolors": "^1.0.0", + "postcss-value-parser": "^4.2.0" + }, + "bin": { + "autoprefixer": "bin/autoprefixer" + }, + "engines": { + "node": "^10 || ^12 || >=14" + }, + "peerDependencies": { + "postcss": "^8.1.0" + } + }, "node_modules/axios": { "version": "1.6.3", "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.3.tgz", @@ -2695,6 +2733,19 @@ "node": ">= 6" } }, + "node_modules/fraction.js": { + "version": "4.3.7", + "resolved": "https://registry.npmjs.org/fraction.js/-/fraction.js-4.3.7.tgz", + "integrity": "sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew==", + "dev": true, + "engines": { + "node": "*" + }, + "funding": { + "type": "patreon", + "url": "https://github.com/sponsors/rawify" + } + }, "node_modules/fresh": { "version": "0.5.2", "resolved": "https://registry.npmjs.org/fresh/-/fresh-0.5.2.tgz", @@ -4386,6 +4437,15 @@ "node": ">=0.10.0" } }, + "node_modules/normalize-range": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/normalize-range/-/normalize-range-0.1.2.tgz", + "integrity": "sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA==", + "dev": true, + "engines": { + "node": ">=0.10.0" + } + }, "node_modules/npm-run-path": { "version": "5.2.0", "resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-5.2.0.tgz", @@ -4752,6 +4812,12 @@ "node": "^10 || ^12 || >=14" } }, + "node_modules/postcss-value-parser": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz", + "integrity": "sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ==", + "dev": true + }, "node_modules/preferred-pm": { "version": "3.1.2", "resolved": "https://registry.npmjs.org/preferred-pm/-/preferred-pm-3.1.2.tgz", diff --git a/package.json b/package.json index 9cd61c8..1fe579d 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "contentful": "^10.6.15" }, "devDependencies": { - "@types/node": "^20.10.6" + "@types/node": "^20.10.6", + "autoprefixer": "^10.4.16" } } diff --git a/postcss.config.mjs b/postcss.config.mjs new file mode 100644 index 0000000..1e899ff --- /dev/null +++ b/postcss.config.mjs @@ -0,0 +1,7 @@ +import autorprefixer from "autoprefixer"; + +export default { + plugins: [ + autorprefixer + ], +};