geowarin/boot-react

support bootstrap

mtiger2k opened this issue · 1 comments

Could you please add support for bootstrap and css? Thanks.

Hi @mtiger2k,

The project has support for stylus, which allows loading any css.
Have a look at main.styl which loads the purecss stylesheets.

You can do the same with bootstrap by installing it with npm and importing it with something like:

@import '~boostrap/dist/main.css'

The ~ tells webpack to look for the package named bootstrap in your node_modules.

If you want to use css only and not stylus (IMHO, you shouldn't, stylus is a superset of CSS so there is no downside using it), you can remove the stylus-loader from the webpack configurations.

I think pure-css (the css framework) is simpler and more lightweight than bootstrap (essentially because you don't need jquery and the like to make it work). That's why I went with pure CSS.

You can have a look at react-boostrap, it shouldn't be too hard to integrate it.