DefactoSoftware / ex_css_modules

CSS Modules for Elixir
MIT License
18 stars 1 forks source link

Config option to embed stylesheets by default #68

Closed Blond11516 closed 2 years ago

Blond11516 commented 2 years ago

This would allow configuring the application to automatically embed the stylesheets in production, but not in dev (remains false by default to keep current behaviour). Then you don't have to worry about it at the call site, but the option remains available on the macro if you really need it.

Btw, I'm curious to know how you are handling this in you current projects? Do you have an additional wrapper around ex_css_modules? Do you not embed the stylesheets in prod or always embed them in development?