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

Is there any way to compress string literals? #60

Closed
drcmda opened this issue Sep 22, 2016 · 2 comments
Closed

Is there any way to compress string literals? #60

drcmda opened this issue Sep 22, 2016 · 2 comments
Labels

Comments

@drcmda
Copy link

drcmda commented Sep 22, 2016

This project has been perfect so far, i can't believe it solves pretty much all the major issues with React and styles.

The only gripe left is that the minified endbuild has lots of needless holes in it taking space due to the string literals. And since postCSS/cssnano doesn't work with babel-plugin-csjs-postcss there's no obvious solution.

Is there any alternative to compress it?

@scott113341
Copy link
Collaborator

Hi @drcmda, I stumbled across your post on Reddit today. Thanks for taking the time to figure this out! I will make a PR to add this to the docs.

For quick reference, @drcmda is using the csswring PostCSS plugin.

@rtsao
Copy link
Owner

rtsao commented Sep 30, 2016

I didn't know about csswring, that's great!

@drcmda drcmda closed this as completed Sep 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants