Webpack-Get-Code-On-Done
TL;DR
Allows you to get compiled code after compiler's done
event. Heavily inspired by webpack-hot-server-middleware.
Why?
It's very useful when you're working with universal apps. Check Tiny-Universal-Skeleton for an example with step-by-step guide.
Where?
Webpack-Get-Code-On-Done is used inside suicrux.
API
webpackGetCodeOnDone(serverCompiler, done):
Default export - function that accepts 2 arguments:
serverCompiler
- webpack Compiler that compiles your server.done
- function that will be executed aftercompile.on('done')
event. E.g. Every time your code will be changed.
License
Apache 2.0 License
Author
Vladimir Metnew vladimirmetnew@gmail.com