Used to prompt ip link and some other information when webpack-dev-server Successfully started
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'
})
],
}
default style is default
😂
Prompt message queue, array object or string array can be
{
tips: [
{
name: '[🏀] web project',
color: 'green'
},
'this is react spa project'
],
}