1. limit-size
Lightweight, Convenient, Fast command tool to control your file size, size-limit is too bloated.
limit-size
Package: limit-size
Last modified: Sun, 08 May 2022 01:05:55 GMT
Version: 0.1.4
License: MIT
Downloads: 1,243

Install

npm install limit-size
yarn add limit-size

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.

RELATED POST

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Enhancing Vue.js Development: Harnessing the Potential of Vue-Loader

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Simplify Data Validation in Vue.js: A Step-by-Step Guide to Using Regex

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Troubleshooting Made Easy: Common Issues and Solutions with vue-loader Without vue-cli

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Optimizing Webpack 4 with Vue CLI 3: Disabling the Cache-Loader

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin

Step-by-Step Guide: How to Add a Function to Your Vuex Plugin