timecounts / parallel-transpile

Transpile files using webpack loaders in parallel using all available CPUs [abandoned] Use HappyPack instead
9 stars 2 forks source link

Webpack configuration #8

Open devlato opened 8 years ago

devlato commented 8 years ago

Hey folks,

is it possible to use this module with existing webpack configuration?

benjie commented 8 years ago

Hi @devlato,

You'd take the webpack-loader parts out of your existing Webpack config and translate them (should not be too hard to do) to the parallel-transpile syntax. You then use parallel transpile to do all the transpilation from e.g. CJSX through to JS (via cjsx-loader, coffee-loader, babel-loader) and then you use your modified webpack config to bundle up the resulting transpiled code files (which is generally quite fast). This is not a replacement for webpack, it's a tool to speed up the webpack process by pre-processing the source files in parallel.

Does that answer your question? If not, post your webpack config and I'll give you a hand figuring out what to do.

Cheers,

Benjie.

nwhite89 commented 7 years ago

I second this would make the documentation and using this library a lot simpler transferring from normal webpack documentation from loaders etc.