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

Outputting Minified Obfuscated Styles #34

Open
FullstackJack opened this issue Mar 8, 2017 · 5 comments
Open

Outputting Minified Obfuscated Styles #34

FullstackJack opened this issue Mar 8, 2017 · 5 comments

Comments

@FullstackJack
Copy link

Perhaps I'm not using the tool correctly or perhaps I expected something different, but when I follow the setup guide in the README, the tool outputs the theme.css and theme.js minified and obfuscated. Shortened for brevity.

theme.css

._3nrqp{-webkit-box-align:center;-ms-flex-align:center;align-items:center;...```

theme.js

module.exports={"RTDialog":{"wrapper":"_3nrqp","dialog":"_3lw90","active":"_3ea_1",

Would this tool be picking up the postcss.config.js file in my project root?

@csalvato
Copy link

Mine, too. Thought that was intentional.

@FullstackJack
Copy link
Author

I've resorted to copying the source styles individually per component, but that's less than ideal and easy to screw up.

@silenzium
Copy link

Is there an option or something to turn off obfuscation?

@Galderak
Copy link

Undocumented config option 'fixed' worked for me.
set 'fixed' to true, output should no longer be obfuscated.

"reactToolBox":{
  "include":[
      "DATE_PICKER"
 ],
"fixed":true

Cheers,

@gnapse
Copy link

gnapse commented Jun 15, 2017

Wow, this is great! I think that option should be documented. In fact, I think it should be the default option, and if it does not minify also, even better (right now that option only prevents obfuscation). Then there should be an option to request output to be obfuscated and or minified, not the other way around.

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

No branches or pull requests

5 participants