It would be great to be able to distinguish between local and global CSS 
classes, with the :local and :global syntax from CSS modules. That's 
possible with Webpack today; any CSS class marked :local will be hashed. 
(Using style-loader + css-loader + postcss-loader)

tirsdag 6. juni 2017 04.00.06 UTC+2 skrev Kevin Yank følgende:
>
> Neat project, thanks for sharing Marek!
>
> CSS Modules, of course, have additional features such as the ability to 
> include unique hashes in class names and IDs (so that you can have two CSS 
> modules with the same name, both containing identically-named classes, and 
> have them still not conflict with each other), as well as the ability to 
> compose classes within and between CSS modules. I do appreciate the 
> stack-independence that your solution provides, however!
>
> On Monday, June 5, 2017 at 5:28:52 AM UTC+10, Marek Fajkus wrote:
>>
>> Interesting project!
>>
>> We had this problem too but have decided we don't want to lock us to 
>> webpack so much (even though we're currently using it). If you're 
>> interested you can have a look at 
>> http://package.elm-lang.org/packages/GlobalWebIndex/class-namespaces/latest. 
>> Simply we're just generating class selectors using this lib in elm and 
>> corresponding selectors using scss to generate everything on style's side.
>>
>> Anyway I'm looking forward to play with your plugin as well if I'll find 
>> time do so 🙌
>>
>

-- 
You received this message because you are subscribed to the Google Groups "Elm 
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to elm-discuss+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to