npm 发布学习

2020-12-07  本文已影响0人  A_dfa4

发布命令npm publish

版本管理

本地调试

npm script

"clean": "rimraf ./dist && mkdir dist",
"prebuild": "npm run clean",
"build": "cross-env NODE_ENV=production webpack"
prepublish,postpublish
preinstall,postinstall
preuninstall,postuninstall
preversion,postversion
pretest,posttest
prestop,poststop
prestart,poststart
prerestart,postrestart
上一篇 下一篇

猜你喜欢

热点阅读