catamphetamine / universal-webpack

Isomorphic Webpack: both on client and server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`style` loader not replaced with fake-style-loader

davibe opened this issue · comments

In a webpack configuration i can refer to a named loader as name-loader or just with its name. If i do the latter, universal webpack will fail replacing style with fake-style-loader while generating server conf.

i.e.

...
    loader: 'style!css'
...

This bug results in style loader to be included in the built output and node.js won't be able to run it as style-loader only works in the browser.

I'm not getting any errors with the example project
https://github.com/halt-hammerzeit/webpack-react-redux-isomorphic-render-example
if I change style-loader to just style.

If you reproduce this bug on a fork of the example repo then I could have a look.