1.0.0 • Published 5 years ago
pack-notify-webpack-plugin v1.0.0
pack-notify-webpack-plugin
Webpack Plugin,打包完成通知插件
Installation
npm:
npm install pack-notify-webpack-plugin --save-dev
yarn:
yarn add pack-notify-webpack-plugin
Base Usage
Add the plugin to your webpack config as follows:
// Vue
// vue.config.js
const path = require('path');
const PackNotifyWebpackPlugin = require('pack-notify-webpack-plugin');
module.exports = {
configureWebpack: config => {
config.plugins.push(new PackNotifyWebpackPlugin({
projectName: 'your project name',
requestUrl: 'your server address',
messageType: 'your message type',
env: 'your project environment'
}))
}
}
Configuration
The plugin allowed values are as follows:
projectName
: 项目名称requestUrl
: 通知发送地址messageType
: 消息类型env
: 打包环境
1.0.0
5 years ago