1.1.1 • Published 8 months ago
publish-info-webpack-plugin v1.1.1
publish-info-webpack-plugin
build 后为 dist 包添加发布时间、分支等信息方便查看版本情况
Installation
需要安装依赖包shelljs
npm i shelljs -D
yarn add shelljs -D
pnpm add shelljs -D
Usage
// for example
module.exports = {
plugins: [
new PublishWebpackPlugin({
outPath: resolve(__dirname, '../dist/index.html') // 指定打包后(output 指定的输出路径)输出html的路径
})
],
}