[vtadmin-web] Remove craco dependency #9591
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Signed-off-by: Sara Bee [email protected]
Description
This PR removes the craco dependency. Arguably the best kind of dependency "upgrade". 😎
I noticed this when running
npm update
:craco
was added in #9215 in order to install [email protected]. Thanks to @notfelineit by way of #9493, we're now using [email protected] which supports tailwindcss out of the box.This means we no longer need craco, and indeed the [email protected] docs no longer mention it.
We still need to upgrade to [email protected]; as of this PR, we're still on
npm:@tailwindcss/postcss7-compat@^2.2.17
(per the tailwindcss@v2 guide), which incidentally breaksnpm outdated
(TIL). I'll do the tailwindcss upgrade in a separate PR to keep things tidy.I tested this change by running all of the scripts in package.json that previously relied on
craco
. I made sure to also test changes to the tailwind.config.js and base CSS files (to force a full tailwind rebuild). Everything runs + builds fine.Related Issue(s)
Checklist
Deployment Notes
Not strictly necessary, but if you have an existing
node_modules
folder, I'd recommend doingnpm install
(or a fullrm -rf node_modules && npm install
, if you like). This is mostly relevant for developers rather than operators, as the vtadmin-web targets in the Makefile already do annpm install
.