diff --git a/README.md b/README.md index 5ee12f3..7669218 100644 --- a/README.md +++ b/README.md @@ -109,7 +109,7 @@ pnpm install > > - Remember to optimize SVG for web, you can use [SVGOMG](https://jakearchibald.github.io/svgomg/). > - When you optimize the SVG, make sure that the `viewBox` is not removed. -> - The size limit for each .svg is **20kb**. +> - The size limit for each .svg is **21kb**. 4. Go to the [**`src/data/svgs.ts`**](https://github.com/pheralb/svgl/blob/main/src/data/svgs.ts) and add the information about your logo, following the structure: diff --git a/utils/check-size/index.js b/utils/check-size/index.js index 2e157ad..c4dfb5c 100644 --- a/utils/check-size/index.js +++ b/utils/check-size/index.js @@ -1,4 +1,3 @@ -/* eslint-disable @typescript-eslint/no-var-requires */ const { readdir, stat } = require('fs').promises; const { join } = require('path'); @@ -7,7 +6,7 @@ const core = require('@actions/core'); // 🔎 Settings: const dir = '../../static/library'; -const sizeLimit = 20000; // 20kb; +const sizeLimit = 21504; // 21kb; function convertBytes(bytes, format = 'KB') { if (format === 'KB') {