fusepilot / create-cep-extension

A near zero config approach to creating CEP extensions with Webpack and React.
Other
87 stars 16 forks source link

Add CSS modules support #20

Open jenglamlow opened 6 years ago

jenglamlow commented 6 years ago

Hi,

I've updated the webpack config to support CSS modules. I'm not sure whether you want to merge it as a feature, as merging might cause the previous css rendering to fail.

With this implementation, it is required to wrap the css property with :global tag to declare the attribute as global scoped as mentioned here

vladdancer commented 6 years ago

@jenglamlow, Nice! Also I definitely try out this lib https://github.com/css-modules/css-modules