npm

Ready to take your JavaScript development to the next level? Meet npm Enterprise - the ultimate in enterprise JavaScript. Learn more »

webpack-get-code-on-done

1.0.12 • Public • Published

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

install

npm i webpack-get-code-on-done

Downloadsweekly downloads

8

version

1.0.12

license

MIT

homepage

github.com

repository

Gitgithub

last publish

collaborators

  • avatar
Report a vulnerability