{"id":18365211,"url":"https://github.com/festify/rollup-plugin-minifyliterals","last_synced_at":"2025-04-10T13:18:04.812Z","repository":{"id":65491324,"uuid":"135066804","full_name":"Festify/rollup-plugin-minifyliterals","owner":"Festify","description":"Minify html in template literals","archived":false,"fork":false,"pushed_at":"2018-06-09T12:04:15.000Z","size":46,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-17T04:18:49.248Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":false,"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/Festify.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-27T17:18:07.000Z","updated_at":"2018-06-09T13:19:43.000Z","dependencies_parsed_at":"2023-01-25T18:45:25.857Z","dependency_job_id":null,"html_url":"https://github.com/Festify/rollup-plugin-minifyliterals","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Festify%2Frollup-plugin-minifyliterals","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Festify%2Frollup-plugin-minifyliterals/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Festify%2Frollup-plugin-minifyliterals/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Festify%2Frollup-plugin-minifyliterals/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Festify","download_url":"https://codeload.github.com/Festify/rollup-plugin-minifyliterals/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225656,"owners_count":21068078,"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-05T23:12:53.462Z","updated_at":"2025-04-10T13:18:04.678Z","avatar_url":"https://github.com/Festify.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# rollup-plugin-minifyliterals\n\nMinify html in template literals using html-minifier. Tmeplate expressions are replaced with a placeholder before being minified. Supports nested templates in expresions.\n\nExperimental support for minifying templates literals that have already been transpiled (i.e. string concatenation).\n\n### Credits\n\nThis plugin was originally envisioned and created by [Terrence Tempest Wood](https://github.com/tmpst).\n\n## Installation\n\n```sh\nnpm install --save-dev rollup-plugin-minifyliterals\n```\n\n\n## Usage\n\nFor best results run before transpiling to es5. This will allow you to send\nextra options to through to html-minifier.\n\n\n```js\n// rollup.config.js\nimport minifyliterals from 'rollup-plugin-minifyliterals'\nimport buble from 'buble'\n\nexport default {\n  entry: 'src/index.js',\n  dest: 'dist/my-lib.js',\n  plugins: [\n    minifyliterals({\n      // set this to `false` if you're not using sourcemaps –\n      // defaults to `true`\n      sourceMap: true,\n      // optionally pass through options to html-minifier -\n      // defaults to `{ collapseWhitespace: true }`\n      htmlminifier: {\n        removeRedundantAttributes: true\n      },\n      // optionally process transpiled template literals -\n      // defaults to false (experimental, not widely tested)\n      literals: true\n    }),\n    buble()\n  ]\n}\n\n```\n\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffestify%2Frollup-plugin-minifyliterals","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffestify%2Frollup-plugin-minifyliterals","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffestify%2Frollup-plugin-minifyliterals/lists"}