From d7f5b8ade1ecd5fe64af6c1deeec037b130ba819 Mon Sep 17 00:00:00 2001 From: chenxsan Date: Wed, 14 Sep 2022 08:09:51 +0800 Subject: [PATCH] use lightningCss --- package.json | 2 +- webpack.prod.mjs | 2 +- webpack.ssg.mjs | 2 +- yarn.lock | 19 ++----------------- 4 files changed, 5 insertions(+), 20 deletions(-) diff --git a/package.json b/package.json index 3986e8a2b4e7..6e0dace82730 100644 --- a/package.json +++ b/package.json @@ -78,7 +78,6 @@ "@mdx-js/loader": "^2.0.0-next.9", "@octokit/auth-action": "^2.0.1", "@octokit/rest": "^19.0.4", - "@parcel/css": "^1.14.0", "@pmmmwh/react-refresh-webpack-plugin": "next", "@svgr/webpack": "^6.3.1", "autoprefixer": "^10.4.8", @@ -103,6 +102,7 @@ "husky": "^8.0.1", "hyperlink": "^5.0.4", "jest": "^29.0.3", + "lightningcss": "^1.14.0", "lint-staged": "^13.0.3", "lodash": "^4.17.21", "markdownlint": "^0.26.2", diff --git a/webpack.prod.mjs b/webpack.prod.mjs index 70d260c75734..b7ca1acf6de4 100644 --- a/webpack.prod.mjs +++ b/webpack.prod.mjs @@ -38,7 +38,7 @@ export default (env) => minimizer: [ '...', new CssMinimizerPlugin({ - minify: CssMinimizerPlugin.parcelCssMinify, + minify: CssMinimizerPlugin.lightningCssMinify, }), ], }, diff --git a/webpack.ssg.mjs b/webpack.ssg.mjs index ec8fa8cc9ce2..2a9fb762dd4f 100644 --- a/webpack.ssg.mjs +++ b/webpack.ssg.mjs @@ -41,7 +41,7 @@ export default (env) => optimization: { minimizer: [ new CssMinimizerPlugin({ - minify: CssMinimizerPlugin.parcelCssMinify, + minify: CssMinimizerPlugin.lightningCssMinify, }), ], }, diff --git a/yarn.lock b/yarn.lock index 0e5d241746de..d7374d76dacc 100644 --- a/yarn.lock +++ b/yarn.lock @@ -230,15 +230,7 @@ "@babel/helper-replace-supers" "^7.18.6" "@babel/helper-split-export-declaration" "^7.18.6" -"@babel/helper-create-regexp-features-plugin@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.18.6.tgz#3e35f4e04acbbf25f1b3534a657610a000543d3c" - integrity sha512-7LcpH1wnQLGrI+4v+nPp+zUvIkF9x0ddv1Hkdue10tg3gmRnLy97DXh4STiOf1qeIInyD69Qv5kKSZzKD8B/7A== - dependencies: - "@babel/helper-annotate-as-pure" "^7.18.6" - regexpu-core "^5.1.0" - -"@babel/helper-create-regexp-features-plugin@^7.19.0": +"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.19.0": version "7.19.0" resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.19.0.tgz#7976aca61c0984202baca73d84e2337a5424a41b" integrity sha512-htnV+mHX32DF81amCDrwIDr8nrp1PTm+3wfBN9/v8QJOLEioOCOG7qNyq0nHeFiWbT3Eb7gsPwEmV64UCQ1jzw== @@ -2009,13 +2001,6 @@ dependencies: "@octokit/openapi-types" "^13.0.0" -"@parcel/css@^1.14.0": - version "1.14.0" - resolved "https://registry.yarnpkg.com/@parcel/css/-/css-1.14.0.tgz#233750a1e3648b3746f27c2d8f3fd85a2290e512" - integrity sha512-r5tJWe6NF6lesfPw1N3g7N7WUKpHqi2ONnw9wl5ccSGGIxkmgcPaPQxfvmhdjXvQnktSuIOR0HjQXVXu+/en/w== - dependencies: - lightningcss "^1.14.0" - "@pkgr/utils@^2.3.1": version "2.3.1" resolved "https://registry.yarnpkg.com/@pkgr/utils/-/utils-2.3.1.tgz#0a9b06ffddee364d6642b3cd562ca76f55b34a03" @@ -4473,7 +4458,7 @@ detab@^2.0.0: detect-libc@^1.0.3: version "1.0.3" resolved "https://registry.yarnpkg.com/detect-libc/-/detect-libc-1.0.3.tgz#fa137c4bd698edf55cd5cd02ac559f91a4c4ba9b" - integrity sha1-+hN8S9aY7fVc1c0CrFWfkaTEups= + integrity sha512-pGjwhsmsp4kL2RTz08wcOlGN83otlqHeD/Z5T8GXZB+/YcpQ/dgo+lbU8ZsGxV0HIvqqxo9l7mqYwyYMD9bKDg== detect-newline@^3.0.0: version "3.1.0"