1.1.11 • Published 3 years ago

webpack-prompt-plugin v1.1.11

Weekly downloads
10
License
ISC
Repository
github
Last release
3 years ago

webpack-prompt-plugin

Used to prompt ip link and some other information when webpack-dev-server Successfully started

usage

install

yarn add webpack-prompt-plugin --dev

或者

pnpm install webpack-prompt-plugin -D
const webpackPromptPlugin = require('webpack-prompt-plugin');

module.exports = {
  // ...
  plugins: [
    new webpackPromptPlugin()
  ],
}
// 带参数
module.exports = {
  // ...
  plugins: [
    new WebpackPromptPlugin({
      tips: [
        {
          name: '[🏀] web project',
          color: 'green'
        },
        'this is react spa project'
      ],
      style: 'table'
    })
  ],
}

Instance attributes

style 'default' | 'text' | 'table'

  • default

    default style

  • text

    text style

  • table

    table style

default style is default 😂

tips: Array<{ text: string, color?: string } | string>

Prompt message queue, array object or string array can be

{
  tips: [
    {
      name: '[🏀] web project',
      color: 'green'
    },
    'this is react spa project'
  ],
}

tips text

1.1.11

3 years ago

1.1.10

3 years ago

1.1.9

3 years ago

1.1.8

3 years ago

1.1.7

3 years ago

1.1.6

3 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

4 years ago

1.1.1

4 years ago

1.1.2

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago