koistya / gulp-render

Pre-render React components at compile time. E.g. SomePage.jsx -> some-page.html
MIT License
26 stars 9 forks source link

webpack loaders support #6

Open dmnd opened 9 years ago

dmnd commented 9 years ago

I'm trying to use a webpack loader with gulp-render (Specifically, yaml-loader).

Maybe this is the same issue as #4. Things work fine via webpack, but since gulp-render gets called before webpack, when React tries to compile the file it interprets anything requireed as a Javascript file, causing a syntax error.

Is it easy to set up this plugin in a way where the React can rely on webpack loaders? I'm using this via https://github.com/kriasoft/react-starter-kit.

davidascher commented 9 years ago

I have the same issue w/ firebase.