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

    5

    Version

    1.0.12

    License

    MIT

    Last publish

    Collaborators

    • metnew