babel-plugin-react-css-modules

React - Use Bootstrap globally with css modules

有些话、适合烂在心里 提交于 2020-01-17 01:53:12
问题 Pretty new to react and all that stuff, so I need some help here. I recently added the https://github.com/gajus/babel-plugin-react-css-modules plugin to my project. After some troubles I got it to work, so I can now use my local css files with my components. So far so good. Not I would like to add bootstrap for the whole application. It worked before I added the css-modules plugin... Here's are the relevant parts of my code (I guess... if I miss something let me know): index.js (entrypoint of

babel-plugin-react-css-modules is not matching styles with styleName

只谈情不闲聊 提交于 2019-12-10 17:47:45
问题 Issue I am trying to use babel-plugin-react-css-modules in my React project for better performance as opposed to React CSS Modules . However, the styles are being not applied correctly. Cause The version in <style> tag is wrapped with weird hypen, for example: In the <style> tag: -components-Foo-___Foo__foo___1fcIZ- On the DOM element class name: components-Foo-___Foo__foo___1fcIZ Even if we are using the same localIdentName , the generated results are different from selectors in css and