Skip to content
This repository has been archived by the owner on May 7, 2018. It is now read-only.

Metnew/webpack-get-code-on-done

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Webpack-Get-Code-On-Done

Greenkeeper badge Commitizen friendly semantic-release Build Status

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:

  1. serverCompiler - webpack Compiler that compiles your server.
  2. done - function that will be executed after compile.on('done') event. E.g. Every time your code will be changed.

License

Apache 2.0 License

Author

Vladimir Metnew vladimirmetnew@gmail.com