roylee0704 / react-flexbox-grid

A set of React components implementing flexboxgrid with the power of CSS Modules.
http://roylee0704.github.io/react-flexbox-grid/
2.93k stars 206 forks source link

ClassNames are changing in production mode: help #132

Open avinashdvv opened 7 years ago

avinashdvv commented 7 years ago

react 15.6.1 react-flexbox-grid": "^1.1.4" and i am using create-react-app I hosted my website on Heroku in Heroku class names of row and col changing to "flexboxgridcol-sm-121e5Uk flexboxgridcol-md-65OSyJ" something like this, so CSS is not applying to the dom

kiesman99 commented 7 years ago

@avinashdvv

Try importing this line in your App.js

import '../node_modules/react-flexbox-grid/lib/index.css';

oriolpuig commented 7 years ago

I've imported the line mentioned by @kiesman99 into my style.css/style.scss instead of modify the webpack configuration and works fine. Thanks!

roylee0704 commented 7 years ago

Let me know if its working for you guys in v1.1.5 =)

oriolpuig commented 7 years ago

@roylee0704 whitout importing CSS or what do you mean?