From 8dba99812fb6686aa5add13d8496113d05c70159 Mon Sep 17 00:00:00 2001 From: sunhao Date: Thu, 30 May 2024 14:59:58 +0800 Subject: [PATCH] + proj: add postcss-inset plugin to compatible with older browsers. --- package.json | 1 + pnpm-lock.yaml | 19 +++++++++++++++++++ postcss.config.cjs | 1 + 3 files changed, 21 insertions(+) diff --git a/package.json b/package.json index ebe2afd037..4fa2149962 100755 --- a/package.json +++ b/package.json @@ -84,6 +84,7 @@ "minimist": "^1.2.8", "postcss": "^8.4.38", "postcss-import": "^15.1.0", + "postcss-inset": "^1.0.0", "postcss-rem-to-pixel": "^4.1.2", "tailwindcss": "^3.4.3", "tsx": "^3.14.0", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 27429ed690..1a0dcc03ec 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -129,6 +129,9 @@ importers: postcss-import: specifier: ^15.1.0 version: 15.1.0(postcss@8.4.38) + postcss-inset: + specifier: ^1.0.0 + version: 1.0.0 postcss-rem-to-pixel: specifier: ^4.1.2 version: 4.1.2 @@ -5284,6 +5287,13 @@ packages: resolve: 1.22.8 dev: true + /postcss-inset@1.0.0: + resolution: {integrity: sha512-GAGG8dCDL8zq3BLo2spfcY7YxVQzIZscHDklcJVy/VI2V5lO8V5N9b/p96411w8nf40v7lx3VOiAzBNJlmrI4Q==} + engines: {node: '>=4.0.0'} + dependencies: + postcss: 6.0.23 + dev: true + /postcss-js@4.0.1(postcss@8.4.38): resolution: {integrity: sha512-dDLF8pEO191hJMtlHFPRa8xsizHaM82MLfNkUHdUtVEV3tgTp5oj+8qbEqYM57SLfc74KSbw//4SeJma2LRVIw==} engines: {node: ^12 || ^14 || >= 16} @@ -5561,6 +5571,15 @@ packages: supports-color: 3.2.3 dev: true + /postcss@6.0.23: + resolution: {integrity: sha512-soOk1h6J3VMTZtVeVpv15/Hpdl2cBLX3CAw4TAbkpTJiNPk9YP/zWcD1ND+xEtvyuuvKzbxliTOIyvkSeSJ6ag==} + engines: {node: '>=4.0.0'} + dependencies: + chalk: 2.4.2 + source-map: 0.6.1 + supports-color: 5.5.0 + dev: true + /postcss@8.4.38: resolution: {integrity: sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A==} engines: {node: ^10 || ^12 || >=14} diff --git a/postcss.config.cjs b/postcss.config.cjs index aec59ba784..3a85092df1 100755 --- a/postcss.config.cjs +++ b/postcss.config.cjs @@ -14,6 +14,7 @@ module.exports = { plugins: [ require('postcss-import'), require('tailwindcss'), + require('postcss-inset')(), require('autoprefixer'), ...extraPlugins, ],