Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I use Webpack for isomorphic code. The trick is to hook up loaders in node via:

    require.extensions['.css'] = loaderFunction


I thought require hooks were deprecated (although they are likely to stick around for a while because legacy support)?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: