Re: [w3c/webcomponents] CSS Modules (#759)

I like this as a feature, but would mean that files containing custom elements must have a common structure in order to be reused (the path to `'./styles'` will not always be consistent if the component is really being reused across apps). I do think this is needed, but would prefer a different entry point to add the styles such that any given file could simply export it's class and be consumed in another which would add the styles (I won't go into my thoughts on #468, but the custom element init object seems to make a lot of sense) so that the consumer of the component can point to the right files and the right structure for their app.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/759#issuecomment-411860713

Received on Thursday, 9 August 2018 18:55:31 UTC