moxystudio / react-with-moxy

MOXY's boilerplate to create isomorphic react applications
35 stars 10 forks source link

Add a CSS link tag for each route #113

Open satazor opened 6 years ago

satazor commented 6 years ago

We are now using https://github.com/webpack-contrib/mini-css-extract-plugin which is able to generate a CSS per entry point. Though, this was causing FOUC. The reason for this is that we are not including the CSS for each route. We need to copy up with a solution that associates routes (async entry-points) to the outputted CSS assets and include them in index.html.js.

satazor commented 6 years ago

For now, I will revert to generate a single CSS file like we were doing before.

satazor commented 6 years ago

Once we find the correct strategy to do what's described in the issue, we may manually revert some parts of these commits: