{"id":16434534,"url":"https://github.com/zce/gatsby-plugin-minify","last_synced_at":"2025-03-23T08:31:47.068Z","repository":{"id":36321862,"uuid":"223419222","full_name":"zce/gatsby-plugin-minify","owner":"zce","description":"A Gatsby plugin to easily minify all result.","archived":false,"fork":false,"pushed_at":"2022-04-20T16:49:45.000Z","size":62,"stargazers_count":3,"open_issues_count":2,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-18T18:58:16.059Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zce.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-11-22T14:21:48.000Z","updated_at":"2022-03-28T01:48:18.000Z","dependencies_parsed_at":"2022-08-08T14:02:33.023Z","dependency_job_id":null,"html_url":"https://github.com/zce/gatsby-plugin-minify","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Fgatsby-plugin-minify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Fgatsby-plugin-minify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Fgatsby-plugin-minify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zce%2Fgatsby-plugin-minify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zce","download_url":"https://codeload.github.com/zce/gatsby-plugin-minify/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245078067,"owners_count":20557274,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-11T08:49:28.249Z","updated_at":"2025-03-23T08:31:46.789Z","avatar_url":"https://github.com/zce.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# gatsby-plugin-minify\n\n[![Build Status][travis-img]][travis-url]\n[![License][license-img]][license-url]\n[![NPM Downloads][downloads-img]][downloads-url]\n[![NPM Version][version-img]][version-url]\n[![Dependency Status][dependency-img]][dependency-url]\n[![Code Style][style-img]][style-url]\n\n\u003e A Gatsby plugin to easily minify all output HTML files.\n\n## Installation\n\n```shell\n$ npm install gatsby-plugin-minify\n\n# or yarn\n$ yarn add gatsby-plugin-minify\n```\n\n## Usage\n\nInclude the plugin in your `gatsby-config.js` file.\n\n```javascript\nmodule.exports = {\n  plugins: [`gatsby-plugin-minify`]\n}\n```\n\n### options\n\nIf you need to pass options to html-minifier-terser use the plugins options, see [html-minifier-terser](https://github.com/terser/html-minifier-terser#options-quick-reference) docs for all available options.\n\n```javascript\n// in gatsby-config.js\nmodule.exports = {\n  plugins: [\n    {\n      resolve: `gatsby-plugin-minify`,\n      options: {\n        removeAttributeQuotes: true\n        // ...\n      }\n    }\n  ]\n}\n```\n\ndefault options:\n\n```javascript\nconst defaultOptions = {\n  collapseWhitespace: true,\n  minifyCSS: true,\n  minifyJS: true,\n  removeComments: true,\n  removeEmptyAttributes: true,\n  removeScriptTypeAttributes: true,\n  removeStyleLinkTypeAttributes: true,\n  processConditionalComments: true\n}\n```\n\n## Contributing\n\n1. **Fork** it on GitHub!\n2. **Clone** the fork to your own machine.\n3. **Checkout** your feature branch: `git checkout -b my-awesome-feature`\n4. **Commit** your changes to your own branch: `git commit -am 'Add some feature'`\n5. **Push** your work back up to your fork: `git push -u origin my-awesome-feature`\n6. Submit a **Pull Request** so that we can review your changes.\n\n\u003e **NOTE**: Be sure to merge the latest from \"upstream\" before making a pull request!\n\n## License\n\n[MIT](LICENSE) \u0026copy; [汪磊](https://zce.me)\n\n\n\n[travis-img]: https://img.shields.io/travis/com/zce/gatsby-plugin-minify\n[travis-url]: https://travis-ci.com/zce/gatsby-plugin-minify\n[license-img]: https://img.shields.io/github/license/zce/gatsby-plugin-minify\n[license-url]: https://github.com/zce/gatsby-plugin-minify/blob/master/LICENSE\n[downloads-img]: https://img.shields.io/npm/dm/gatsby-plugin-minify\n[downloads-url]: https://npm.im/gatsby-plugin-minify\n[version-img]: https://img.shields.io/npm/v/gatsby-plugin-minify\n[version-url]: https://npm.im/gatsby-plugin-minify\n[dependency-img]: https://img.shields.io/librariesio/github/zce/gatsby-plugin-minify\n[dependency-url]: https://github.com/zce/gatsby-plugin-minify\n[style-img]: https://img.shields.io/badge/code_style-standard-brightgreen\n[style-url]: https://standardjs.com\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzce%2Fgatsby-plugin-minify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzce%2Fgatsby-plugin-minify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzce%2Fgatsby-plugin-minify/lists"}