{"_id":"@codestitchofficial/eleventy-plugin-minify","_rev":"1-745030edb5fe21bd98cc24ac67ef4af4","name":"@codestitchofficial/eleventy-plugin-minify","dist-tags":{"latest":"1.1.3"},"versions":{"1.1.2":{"name":"@codestitchofficial/eleventy-plugin-minify","version":"1.1.2","keywords":["11ty","code","css","eleventy","eleventy-plugin","files","html","json","min","minification","sherby","transform","webmanifest","xml","xsl"],"author":{"name":"Ethan Hawes"},"license":"MIT","_id":"@codestitchofficial/eleventy-plugin-minify@1.1.2","maintainers":[{"name":"itsethanh","email":"ethan@testvalleydigital.com"}],"homepage":"https://github.com/CodeStitchOfficial/eleventy-plugin-minify#readme","bugs":{"url":"https://github.com/CodeStitchOfficial/eleventy-plugin-minify/issues"},"dist":{"shasum":"5bd74ee4de8cfd98076702b199f767020cd13b62","tarball":"https://registry.npmjs.org/@codestitchofficial/eleventy-plugin-minify/-/eleventy-plugin-minify-1.1.2.tgz","fileCount":5,"integrity":"sha512-X474it6McLjzZluPwUG9+v6SOjw6jSldYqDMy7jeRt+ABkWSf+eTmIL2BgYIb9EDuESfrlgShByOXfzqjnXlBQ==","signatures":[{"sig":"MEQCIE7/MXxnXZg8c46jEleQiPnYdz9l33nDY2tx+G8P3Hn8AiAhjML33z9WqzEspb1oka3K3EolRD+ayQVl6/TCh+o0BA==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":7147},"main":".eleventy.js","gitHead":"b58dfb1479c8299f18c6ddb822b6f9f294e3bbb7","scripts":{"lint":"npm-run-all lint:*","format":"npm-run-all format:*","update":"ncu -u && npm i && npm audit fix","lint:eslint":"eslint --ignore-path .gitignore . --ext js,json,md","format:eslint":"npm run lint:eslint -- --fix","lint:prettier":"prettier --ignore-path .gitignore --check '**/*.{js,json,md}'","format:prettier":"npm run lint:prettier -- --write"},"_npmUser":{"name":"itsethanh","email":"ethan@testvalleydigital.com"},"repository":{"url":"git+https://github.com/CodeStitchOfficial/eleventy-plugin-minify.git","type":"git"},"_npmVersion":"9.6.7","description":"An Eleventy plugin to automatically minify files","directories":{},"_nodeVersion":"20.3.1","dependencies":{"pretty-data":"^0.40.0","html-minifier-terser":"^7.2.0"},"_hasShrinkwrap":false,"devDependencies":{"prettier":"^2.4.1","npm-run-all":"^4.1.5","npm-check-updates":"^17.1.11","eslint-config-udes":"^1.2.0","prettier-config-udes":"1.0.2","eslint-plugin-markdown":"^2.2.1","eslint-plugin-prettier":"^4.0.0","eslint-plugin-json-format":"^2.0.1"},"_npmOperationalInternal":{"tmp":"tmp/eleventy-plugin-minify_1.1.2_1734021206029_0.8635760367098455","host":"s3://npm-registry-packages-npm-production"}},"1.1.3":{"name":"@codestitchofficial/eleventy-plugin-minify","version":"1.1.3","description":"An Eleventy plugin to automatically minify files","keywords":["11ty","code","css","eleventy","eleventy-plugin","files","html","json","min","minification","sherby","transform","webmanifest","xml","xsl"],"homepage":"https://github.com/CodeStitchOfficial/eleventy-plugin-minify#readme","bugs":{"url":"https://github.com/CodeStitchOfficial/eleventy-plugin-minify/issues"},"repository":{"type":"git","url":"git+https://github.com/CodeStitchOfficial/eleventy-plugin-minify.git"},"license":"MIT","author":{"name":"Ethan Hawes"},"main":".eleventy.js","scripts":{"format":"npm-run-all format:*","format:eslint":"npm run lint:eslint -- --fix","format:prettier":"npm run lint:prettier -- --write","lint":"npm-run-all lint:*","lint:eslint":"eslint --ignore-path .gitignore . --ext js,json,md","lint:prettier":"prettier --ignore-path .gitignore --check '**/*.{js,json,md}'","update":"ncu -u && npm i && npm audit fix"},"dependencies":{"html-minifier-terser":"^7.2.0","pretty-data":"^0.40.0"},"devDependencies":{"eslint-config-udes":"^1.2.0","eslint-plugin-json-format":"^2.0.1","eslint-plugin-markdown":"^2.2.1","eslint-plugin-prettier":"^4.0.0","npm-check-updates":"^17.1.11","npm-run-all":"^4.1.5","prettier":"^2.4.1","prettier-config-udes":"1.0.2"},"gitHead":"e1d879a6782c6afc988ae0b56cb6e97d8c5018d3","_id":"@codestitchofficial/eleventy-plugin-minify@1.1.3","_nodeVersion":"20.3.1","_npmVersion":"9.6.7","dist":{"integrity":"sha512-Jjbl0HdP93bKCZU9UGBDA+QOIZJBoYLLZEjQyMnKkEGg9FrrC4EebYOotr9O2dMOahfLLZNYFUfaCWm/PqyXhA==","shasum":"8c6c07ea74cfc3138f0f9f3054e56beca33de863","tarball":"https://registry.npmjs.org/@codestitchofficial/eleventy-plugin-minify/-/eleventy-plugin-minify-1.1.3.tgz","fileCount":5,"unpackedSize":7169,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC+jv3nbkyIFuAa+N9XlFNRxbTW2HEK19cDC8a6CKDkSwIgHv6hd/pqaiEYTS9Uyr+Itq/kk1JfyGkgeldLUhe4zgI="}]},"_npmUser":{"name":"itsethanh","email":"ethan@testvalleydigital.com"},"directories":{},"maintainers":[{"name":"itsethanh","email":"ethan@testvalleydigital.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/eleventy-plugin-minify_1.1.3_1734536638363_0.49691657935194944"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-12T16:33:25.919Z","modified":"2024-12-18T15:43:58.791Z","1.1.2":"2024-12-12T16:33:26.236Z","1.1.3":"2024-12-18T15:43:58.590Z"},"bugs":{"url":"https://github.com/CodeStitchOfficial/eleventy-plugin-minify/issues"},"author":{"name":"Ethan Hawes"},"license":"MIT","homepage":"https://github.com/CodeStitchOfficial/eleventy-plugin-minify#readme","keywords":["11ty","code","css","eleventy","eleventy-plugin","files","html","json","min","minification","sherby","transform","webmanifest","xml","xsl"],"repository":{"type":"git","url":"git+https://github.com/CodeStitchOfficial/eleventy-plugin-minify.git"},"description":"An Eleventy plugin to automatically minify files","maintainers":[{"name":"itsethanh","email":"ethan@testvalleydigital.com"}],"readme":"# eleventy-plugin-files-minifier\r\n\r\n> [!NOTE]  \r\n> This plugin is a continuation of [eleventy-plugin-files-minifier](https://github.com/benjaminrancourt/eleventy-plugin-files-minifier) by [Benjamin Rancourt](https://github.com/benjaminrancourt/). This repo was seemingly abandoned and left projects with an unresolvable npm vulnerability. All we've done is forked the repo, updated the dependencies, and maintained this repo going forward. All credit goes where it is due!\r\n\r\nThis plugin allows you to automatically **minify** files when builting with **[Eleventy](https://www.11ty.dev/)**.\r\nIt currently supports `css`, `html`, `json`, `xml`, `xsl` and `webmanifest` files.\r\n\r\nWhy should you minify your files? Simply to reduce the data transfered between your hosting servers and your visitors,\r\neven if some of them maybe some bots.\r\n\r\nUnder the hood, this plugin use the following plugins to minify code:\r\n\r\n- [pretty-data](https://www.npmjs.com/package/pretty-data): `css`, `json`, `xml` and `webmanifest`\r\n- [html-minifier-terser](https://www.npmjs.com/package/html-minifier-terser): `html` and `xsl`\r\n\r\n## Installation\r\n\r\nInstall the dependency with NPM:\r\n\r\n```shell script\r\nnpm install @codestitchofficial/eleventy-plugin-minify --save-dev\r\n```\r\n\r\nOpen up your Eleventy config file (probably `.eleventy.js`) and use `addPlugin`:\r\n\r\n```javascript\r\nconst eleventyPluginFilesMinifier = require(\"@codestitchofficial/eleventy-plugin-minify\");\r\nmodule.exports = (eleventyConfig) => {\r\n  eleventyConfig.addPlugin(eleventyPluginFilesMinifier);\r\n};\r\n```\r\n\r\n## Usage\r\n\r\nThe plugin will automatically minify supported files, you don't need to do anything except the installation!\r\n\r\nMake sure that the files you want to minify are currently written by Eleventy. If not, you can easily rename it and add\r\nFront matter options. For example, for the `manifest.webmanifest` file, I could rename it as `manifest.webmanifest.njk`\r\nand add the following code at his top:\r\n\r\n```yaml\r\n---\r\neleventyExcludeFromCollections: true\r\npermalink: /manifest.webmanifest\r\n---\r\n```\r\n\r\n## Publish\r\n\r\nIncrement the `version` defined in the `package.json` file and run the command below to publish the module in the\r\nregistry:\r\n\r\n```bash\r\n# Dry run\r\nnpm publish --dry-run\r\n\r\n# For real (are you really sure?)\r\nnpm publish --access public\r\n```\r\n\r\n## License\r\n\r\nThe [MIT License][1] (MIT)\r\n\r\n[1]: https://opensource.org/licenses/MIT\r\n","readmeFilename":"README.md"}