{"id":18024004,"url":"https://github.com/lete114/hexo-minify","last_synced_at":"2025-03-27T00:30:47.479Z","repository":{"id":57263562,"uuid":"330886240","full_name":"Lete114/hexo-minify","owner":"Lete114","description":"Hexo-minify is a Hexo compression plug-in that compresses HTML, CSS, JS, Font and Image(jpg,png,gif,webp,svg) （Hexo-minify 是一款 Hexo 压缩插件，它可以压缩 HTML、CSS、JS、Font、Image(jpg,png,gif,webp,svg)）","archived":false,"fork":false,"pushed_at":"2023-06-02T11:15:23.000Z","size":692,"stargazers_count":38,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-22T18:11:16.876Z","etag":null,"topics":["compress","font","hexo","hexo-minify","hexo-plugin","image","minify","webp"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Lete114.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-01-19T06:32:47.000Z","updated_at":"2025-01-19T17:04:10.000Z","dependencies_parsed_at":"2024-06-19T09:46:46.524Z","dependency_job_id":null,"html_url":"https://github.com/Lete114/hexo-minify","commit_stats":{"total_commits":36,"total_committers":3,"mean_commits":12.0,"dds":"0.41666666666666663","last_synced_commit":"cb84ca08caae03b4f7d58f973a1fc30fe39f052d"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fhexo-minify","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fhexo-minify/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fhexo-minify/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Lete114%2Fhexo-minify/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Lete114","download_url":"https://codeload.github.com/Lete114/hexo-minify/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245760562,"owners_count":20667886,"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":["compress","font","hexo","hexo-minify","hexo-plugin","image","minify","webp"],"created_at":"2024-10-30T07:11:38.564Z","updated_at":"2025-03-27T00:30:46.919Z","avatar_url":"https://github.com/Lete114.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"right\"\u003e\n  语言: 中文\n  \u003ca title=\"English\" href=\"/README_EN.md\"\u003eEnglish\u003c/a\u003e\n\u003c/div\u003e\n\n## Hexo-minify\n\nHexo-minify 是一款 Hexo 压缩插件，它可以压缩 HTML、CSS、JS、Font、Image(jpg,png,gif,webp,svg)\n\n## 安装\n\n```\nnpm install hexo-minify --save\n```\n\n## 说明\n\n\u003e 如需修改，可在 Hexo 配置文件内编辑覆盖\n\n\u003e 如果仅安装插件，并未填写相关配置，则使用以下默认配置信息\n\n```yml\n## Hexo-minify Default Config Options\nminify:\n  preview: false ## 本地预览时是否压缩\n  exclude: ['*.min.*']\n  js:\n    enable: true\n    sourceMap:\n      enable: false ## 生成 sourceMap\n      ## 将 sourceMappingURL 插入压缩后的 js 文件，如果为 false 则需要在浏览器开发者工具中手动添加 sourceMap\n      sourceMappingURL: false ## //# sourceMappingURL=xxx.js.map\n    ## 详细配置: https://github.com/terser/terser#minify-options\n    options: {}\n  css:\n    enable: true\n    ## 详细配置: https://github.com/clean-css/clean-css#compatibility-modes\n    options: {}\n  html:\n    enable: true\n    ## 详细配置: https://github.com/kangax/html-minifier#options-quick-reference\n    options:\n      minifyJS: true # Compressed JavaScript\n      minifyCSS: true # CSS Compressed\n      removeComments: true # Remove the comments\n      collapseWhitespace: true # Delete any extra space\n      removeAttributeQuotes: true # Delete attribute quotes\n  image:\n    enable: true\n    svg:\n      enable: true\n      ## 详细配置: https://github.com/imagemin/imagemin-svgo#imageminsvgooptionsbuffer\n      options: {}\n    jpg:\n      enable: true\n      ## 详细配置: https://github.com/imagemin/imagemin-jpegtran#options\n      options: {}\n    png:\n      enable: true\n      ## 详细配置: https://github.com/imagemin/imagemin-pngquant#options\n      options: {}\n    gif:\n      enable: true\n      ## 详细配置: https://www.npmjs.com/package/imagemin-gifsicle#options\n      options: {}\n    webp:\n      enable: true\n      ## 详细配置: https://github.com/imagemin/imagemin-webp#options\n      options: {}\n  font:\n    enable: false\n    ## 详细配置: https://github.com/Lete114/fontmin-spider#api\n    options: {}\n```\n\n## Hexo 相关\n\n[hexo-theme-MengD](https://github.com/lete114/hexo-theme-MengD)\n\n[hexo-seo-autopush](https://github.com/lete114/hexo-seo-autopush)\n\n[hexo-hash](https://github.com/Lete114/Hexo-hash)\n\n[hexo-prefetch](https://github.com/Lete114/Hexo-prefetch)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flete114%2Fhexo-minify","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flete114%2Fhexo-minify","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flete114%2Fhexo-minify/lists"}