Have ideas to improve npm?Join in the discussion! »

    hook-shell-script-webpack-plugin

    0.1.3 • Public • Published

    Shell Script Webpack Plugin Build Status

    This is a webpack plugin for running arbitrary shell scripts when webpack compiler hooks are triggered.

    Installation

    Install the plugin with npm:

    $ npm install --save-dev hook-shell-script-webpack-plugin
    $ yarn add --dev hook-shell-script-webpack-plugin

    Usage

    // webpack.config.js
    const webpack = require('webpack');
    const HookShellScriptPlugin = require('hook-shell-script-webpack-plugin');
     
    module.exports = {
      // ...
      plugins: [
        new HookShellScriptPlugin({
          afterEmit: ['npx tsc --emitDeclarationOnly']
          // ...
        })
      ]
    };

    Thanks

    Big thanks to webpack-hook-plugin for the inspiration.

    License

    The MIT License

    Copyright ©️ 2020 Drew Loomer, https://drewloomer.com

    Install

    npm i hook-shell-script-webpack-plugin

    DownloadsWeekly Downloads

    759

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    12.5 kB

    Total Files

    11

    Last publish

    Collaborators

    • avatar