Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: deprecated uglify in favor of cssnano or cleanCSS #50

Merged
merged 5 commits into from
Nov 15, 2023

Conversation

bennypowers
Copy link
Owner

@bennypowers bennypowers commented Nov 14, 2023

See tests. if i throw the minified css, i get the right value as an exception, but if i return it, i get the unminified css in the result 🤬

This also kinda sucks because every other plugin uses cssnano, but typescript-transforms can't because all typescript transform functions have to be sync, and postcss things that's lame.

Closes #43

Copy link

changeset-bot bot commented Nov 14, 2023

🦋 Changeset detected

Latest commit: 0d56f54

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@pwrs/lit-css Minor
web-dev-server-plugin-lit-css Minor
esbuild-plugin-lit-css Minor
typescript-transform-lit-css Minor

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@bennypowers bennypowers marked this pull request as ready for review November 15, 2023 08:46
@bennypowers
Copy link
Owner Author

alright

so at this point, i'm using postcss's hidden "debug sync mode" to handle css nesting, then passing that through to cleanCss, so long as the user requests it. This sucks, and i would really rather not have separate APIs for typescript and everyone else, but AFAICT there's no way to run async code in a TS transformer visitor, so 💩

@bennypowers bennypowers changed the title feat(typescript-transform): clean css feat: deprecated uglify in favor of cssnano or cleanCSS Nov 15, 2023
@bennypowers bennypowers merged commit 08a095f into main Nov 15, 2023
1 check passed
@bennypowers bennypowers deleted the feat/ts/clean-css branch November 15, 2023 08:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replacing uglifycss
1 participant