Rename purge.transform
to purge.preprocess
?
#6268
paulovieira
started this conversation in
Ideas
Replies: 1 comment
-
It is simply impossible to search for errors on transform on github. The transform property always pops out of css |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The
purge.transform
/content.transform
API is a somewhat new feature (added in #4469, in may/2021).However the name might be a bit confusing because in the tailwind world, "transform" will probably mean the "transform utilities": https://tailwindcss.com/docs/transform
Since there will be a major release soon, I would like to use the opportunity to suggest a different name:
purge.preprocess
.Some reasons to implement this change:
preprocess
is more meaningful thantransform
because that's what the function does: it receives the raw file and should return some processed version (and the actual work by purgecss or whatever it is, will happen afterwards)."preprocess" is already used in svelte, where it has the exact role as in tailwind (it receives the raw file; the actual work by the svelte compiler is done afterwards): https://svelte.dev/docs#svelte_preprocess
Beta Was this translation helpful? Give feedback.
All reactions