{"id":20991159,"url":"https://github.com/jney/grunt-htmlcompressor","last_synced_at":"2025-05-14T20:32:06.825Z","repository":{"id":4034804,"uuid":"5135697","full_name":"jney/grunt-htmlcompressor","owner":"jney","description":"grunt plugin for html compression, using htmlcompressor.jar","archived":false,"fork":false,"pushed_at":"2024-01-11T21:45:16.000Z","size":5880,"stargazers_count":35,"open_issues_count":2,"forks_count":6,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T19:52:23.670Z","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/jney.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-MIT","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":"2012-07-21T18:16:10.000Z","updated_at":"2023-10-11T12:54:54.000Z","dependencies_parsed_at":"2024-06-18T21:52:58.915Z","dependency_job_id":null,"html_url":"https://github.com/jney/grunt-htmlcompressor","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jney%2Fgrunt-htmlcompressor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jney%2Fgrunt-htmlcompressor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jney%2Fgrunt-htmlcompressor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jney%2Fgrunt-htmlcompressor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jney","download_url":"https://codeload.github.com/jney/grunt-htmlcompressor/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254222328,"owners_count":22034866,"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-11-19T06:37:30.288Z","updated_at":"2025-05-14T20:32:06.301Z","avatar_url":"https://github.com/jney.png","language":"JavaScript","readme":"[![build status](https://secure.travis-ci.org/jney/grunt-htmlcompressor.png)](http://travis-ci.org/jney/grunt-htmlcompressor)\n# grunt-htmlcompressor\n\n[Grunt][grunt] plugin for html compression, using [htmlcompressor][htmlcompressor].\n\n## Getting Started\n\nInstall this grunt plugin next to your project's [grunt.js gruntfile][getting_started] with: `npm install grunt-htmlcompressor`\n\nThen add this line to your project's `grunt.js` gruntfile:\n\n```javascript\ngrunt.loadNpmTasks('grunt-htmlcompressor');\n```\n\nThen specify what files to compress in your config:\n\n```javascript\ngrunt.initConfig({\n  htmlcompressor: {\n    compile: {\n      files: {\n        'dest/index.html': 'src/index.html'\n      },\n      options: {\n        type: 'html',\n        preserveServerScript: true\n      }\n    }\n  }\n});\n```\n### Options\n\n#### htmlcompressor options\n\nOptions can be whatever `htmlcompressor accepts`\n\n#### input/output files\n\n`src` can be a string or a function\n`processName` can help you formating the output instead of using `dest`\n\n[grunt]: https://github.com/cowboy/grunt\n[getting_started]: https://github.com/cowboy/grunt/blob/master/docs/getting_started.md\n[htmlcompressor]: http://code.google.com/p/htmlcompressor/\n\n## Release History\n* 0.1.4 Async fixing\n* 0.1.0 Dynamic input (`src` parameter can be a function) and output (`processName`) files\n* 0.0.1 First Release\n\n## License\nCopyright (c) 2012 Jean-Sébastien Ney\nLicensed under the MIT license.\n","funding_links":[],"categories":["Minifiers - HTML"],"sub_categories":["Meetups"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjney%2Fgrunt-htmlcompressor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjney%2Fgrunt-htmlcompressor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjney%2Fgrunt-htmlcompressor/lists"}