Hacker News new | ask | show | jobs
by edvinbesic 4121 days ago
I know this project uses browserify but by switching to webpack you could achieve the same thing without inline styles by exporting a style bundle. Take a look at the sass-loader[1] package which will let you configure webpack so that you can simply do a require('./style.scss'); and have the style included into either the main or a separate bundle.

[1] https://github.com/jtangelder/sass-loader

1 comments

Sweet! I keep hearing good things about Webpack, including good integration with React Hot Loader[1]. Will create a ticket in repo to assess switching over to Webpack :)

[1] https://github.com/gaearon/react-hot-loader