compiler-then-plugin
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

Compiler Then Plugin

Install

Install the plugin

npm install compiler-then-plugin -D

Configure Webpack

const CompilerThenPlugin = require('compiler-then-plugin')

module.exports = {
  plugins: [
    new CompilerThenPlugin({
      port: 3333,
      script: 'console.log("something...")',
    }),
  ],
}

Configuration

parameter

port

Type: number

Default: 3872

Port number of the internal websocket service.

script

Type: string

Default: location.reload

Custom execute script, a JavaScript string.

/compiler-then-plugin/

    Package Sidebar

    Install

    npm i compiler-then-plugin

    Weekly Downloads

    7

    Version

    0.0.3

    License

    MIT

    Unpacked Size

    8.45 kB

    Total Files

    5

    Last publish

    Collaborators

    • showlotus