diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index e5b6682ae..4a3f7c9fe 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -144,9 +144,7 @@ If you have any problems or questions while creating the SVG, check out [the Git All icons in Simple Icons have been optimized with the [SVGO tool](https://github.com/svg/svgo). This can be done in one of three ways: * The [SVGO Command Line Tool](https://github.com/svg/svgo) - * Install dependencies - * With npm: `npm install` from the root of this repository - * Run the following command `npm run svgo -- icons/file-to-optimize.svg` + * Run the following command `npx svgo icons/file-to-optimize.svg` * Check if there is a loss of quality in the output, if so increase the precision. * The [SVGOMG Online Tool](https://jakearchibald.github.io/svgomg/) * Click "Open SVG" and select an SVG file. diff --git a/package.json b/package.json index 64b462c46..ff8da8822 100644 --- a/package.json +++ b/package.json @@ -73,7 +73,6 @@ "test": "mocha tests --reporter tests/min-reporter.cjs --inline-diffs", "pretest": "npm run prepublishOnly", "posttest": "npm run postpublish", - "svgo": "svgo --config svgo.config.js", "get-filename": "node scripts/get-filename.js", "add-icon-data": "node scripts/add-icon-data.js" }, diff --git a/svgo.config.js b/svgo.config.mjs similarity index 99% rename from svgo.config.js rename to svgo.config.mjs index 43d3122d9..21f32595e 100644 --- a/svgo.config.js +++ b/svgo.config.mjs @@ -1,4 +1,4 @@ -module.exports = { +export default { multipass: true, eol: 'lf', plugins: [