0.0.5 • Published 2 years ago

tiny_yd_kiko v0.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

tinyPicture

introduce

Automatically compress the library of pictures in the project.

Installation tutorial

  1. npm i tiny_yd_kiko.
  2. Add the configuration file "tinyYd.config.ts" to the project.
  3. Type in the configuration file.

"projectImageSaveDir" is the path to store pictures.

"Key" is the key required by the image compression library, which can be obtained from the official website of the library https://tinypng.com/developers.

export default {
  configs: [
    {
      projectImageSaveDir: 'The directory where your pictures are stored',//ex:./src/images
    },
  ],
  key: 'your tiny apiKey'
}

instructions

  1. Write in the script of package.json.
  "scripts": {
    "compressPic": "tinyYd"
  }
  1. Execute the command npm run compresspic on the terminal to compress the pictures in the project.

  2. Let's have a try.