Disable minification of NPM build to make it easier to use patch-package
#15570
gustavopch
started this conversation in
Ideas
Replies: 1 comment
-
Your concerns about tailwindcss being minified before distribution are valid. Minified code can obscure understanding and make debugging difficult. In development, clarity often outweighs the minor performance gains from minification. Additionally, in production, bundlers usually handle minification and optimization, making pre-minified distributions unnecessary. Prioritizing readable, non-minified code could enhance developer experience and encourage community contributions to the project. |
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
-
Because the build is minified, it's basically impossible to go to
node_modules/tailwindcss
and try to understand how things work or patch the package.As
tailwindcss
is used in development, saving a few bytes isn't a big deal. Even in production, people use bundlers to minify their NPM dependencies, so it also wouldn't be necessary to distributetailwindcss
to NPM minified.Please consider not minifying the build sent to NPM.
Beta Was this translation helpful? Give feedback.
All reactions