g-com-qnpm
v1.0.3
Published
参考链接:[从 0 到 1,一步步开发 React 的 loading 组件,并发布到 npm 上](https://segmentfault.com/a/1190000018312821)
Downloads
6
Readme
g-com-qnpm
参考链接:从 0 到 1,一步步开发 React 的 loading 组件,并发布到 npm 上
发布到 npm
我们要发布被 babel 编译且被压缩后的版本,要让没有使用 babel 的项目也能够正常的使用,比如不能出现 JSX 语法。
1.首先需要安装babel-cli
npm i babel-cli@^7.0.0-0 -D
2.npm run transpile
每次更新
npm run transpile
编译npm version patch
自增版本npm publish
发布