Naivete Precedes Misrepresentation

    limit-size

    0.1.4 • Public • Published

    limit-size

    Lightweight, Convenient, Fast command tool to control your file size, size-limit is too bloated.

    npm Version Build Status npm npm License

    Install

    $ npm i --save-dev limit-size

    Usage

    • Add the limit-size section and the size script to your package.json:
      "scripts": {
    +   "size": "limit-size",
        "test": "jest"
      },
    + "limit-size": [
    +   {
    +     "path": "dist/g2plot.min.js",
    +     "limit": "500 Kb"
    +   },
    +   {
    +     "path": "dist/g2plot.min.js",
    +     "limit": "200 Kb",
    +     "gzip": true
    +   }
    + ],
    • you can get the size for your current project:
    $ npm run size

    Dev

    # install dependence 
    $ npm install
     
    # run test cases 
    $ npm run test
     
    # build package 
    $ npm run build
     
    # run size local 
    $ npm run size

    License

    MIT@hustcc.

    Install

    npm i limit-size

    DownloadsWeekly Downloads

    360

    Version

    0.1.4

    License

    MIT

    Unpacked Size

    21.5 kB

    Total Files

    11

    Last publish

    Collaborators

    • atool