-
Parcel插件parcel-plugin-build-hooks的作用是在构建挂钩上执行命令
资源介绍
包裹插件生成钩子
用于在构建挂钩上运行命令的Parcel插件。
安装
$ npm i --save parcel-plugin-build-hooks
用法
在package.json配置命令:
{
" name " : " your-app " ,
" main " : " index.js " ,
" dependencies " : {
" parcel-plugin-build-hooks " : " ^1.0.0 "
},
" parcel-plugin-build-hooks " : {
" buildStart " : " // Do something " ,
" bundled " : " // Do something " ,
" buildEnd " : " // Do something " ,
" b