3 ms·
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
by edvinbesic 12y 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 https://github.com/jtangelder/sass-loader
- gmaster1440 12y agoSweet! 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 https://github.com/gaearon/react-hot-loader