Jonathan Harrison
1 min readSep 21, 2017

--

You should have a look at this: https://webpack.js.org/guides/asset-management/.

webpack allows you to import any file you just need to configure a loader for the file you are trying to import. When it builds using the production config, all the CSS/LESS is output to a separate CSS bundle from the JS.

--

--

Jonathan Harrison
Jonathan Harrison

Written by Jonathan Harrison

Principal Software Engineer @ Tripadvisor. Formerly at Spotify, Altitude Angel and Microsoft. All opinions are my own.

No responses yet