Thanks for this great tutorial, Milo.
Alvaro Mendez
1

Hi Alvaro!

I’m glad you enjoyed the tutorial. The simplest way I have found of doing this is wrapping your css requires in some check for server/client side, ie:

if(window) require('foo.css');

Though this isn’t ideal. Some other solutions were discussed a few months ago here, which should be of interest.

Hope you find a way you like! :P

Show your support

Clapping shows how much you appreciated Milo Mordaunt’s story.