From 8370d7c89dc2c5cffa4f9d723f53ac3a816e072d Mon Sep 17 00:00:00 2001 From: Ryan Christian <33403762+rschristian@users.noreply.github.com> Date: Thu, 26 Jan 2023 02:22:02 -0600 Subject: [PATCH] refactor: Remove Critters (perhaps temporarily) (#1778) * refactor: Remove Critters (perhaps temporarily) * docs: Adding changeset --- .changeset/few-panthers-admire.md | 9 ++ README.md | 3 +- packages/cli/package.json | 1 - packages/cli/src/index.js | 4 - .../src/lib/webpack/webpack-client-config.js | 12 --- packages/cli/tests/build.test.js | 22 ----- packages/cli/tests/images/build.js | 30 ++---- yarn.lock | 95 ++++--------------- 8 files changed, 35 insertions(+), 141 deletions(-) create mode 100644 .changeset/few-panthers-admire.md diff --git a/.changeset/few-panthers-admire.md b/.changeset/few-panthers-admire.md new file mode 100644 index 000000000..c3b75ad7d --- /dev/null +++ b/.changeset/few-panthers-admire.md @@ -0,0 +1,9 @@ +--- +'preact-cli': major +--- + +Removes Critters which facilitates automatic CSS inlining in prod. + +Unfortunately Critters has not been updated for Webpack v5, resulting in a precarious dependency situation that causes issues for NPM users. As such, Critters will be removed for the time being. + +It may be updated or we may switch to a fork, but for now, it's causing issues and will require some work to correct. diff --git a/README.md b/README.md index 27fabce8d..752d48757 100644 --- a/README.md +++ b/README.md @@ -121,7 +121,7 @@ $ [npm init / yarn create] preact-cli Create a production build -You can disable `default: true` flags by prefixing them with `--no-