sahat / megaboilerplate

Handcrafted starter projects, optimized for simplicity and ease of use.
MIT License
3.83k stars 257 forks source link

Styles #152

Closed upq closed 8 years ago

upq commented 8 years ago

React.js SASS

Im wondering where is the code responsible for compiling scss file, and minifying the css.

Second question about styles is Im structruing my components along with their scss files, like so

Components/
|--Header/
|------ Header.js
|------ Header.scss

Im now migrating my code to use it with the megaboilerplate, any suggestions on how to get this done?

sahat commented 8 years ago

@upq It's done via node-sass-middleware. If you want to import individual styles into React components, take a look at how this project is doing it. https://github.com/chentsulin/electron-react-boilerplate/tree/master/app/components

sahat commented 8 years ago

@upq Could you please close this issue if that answers your question?