package.json
描述
description
打开 https://github.com/axios/axios 首先打开 package.json
看看这是什么、
"description": "Promise based HTTP client for the browser and node.js",
首先看到包的描述说到这是一个为浏览器和 NodeJs
设计的基于 promise
的 http
客户端
devDenpendencies
再看 devDependencies
基本都是些打包工具和测试工具,没啥好说的。不过有个 es6-promise
说明这真的是基于 promise
的✌
bundlesize
"bundlesize": [
{
"path": "./dist/axios.min.js",
"threshold": "5kB"
}
设置打包路径和打包大小
typings
"typings": "./index.d.ts"
查了官方文档,没发现这个属性字段,估计是指定规范
Last updated
Was this helpful?