{"id":13447654,"url":"https://github.com/eight04/rollup-plugin-inline-js","last_synced_at":"2025-10-25T23:30:34.360Z","repository":{"id":54543932,"uuid":"115602441","full_name":"eight04/rollup-plugin-inline-js","owner":"eight04","description":"Rollup with inline-js.","archived":false,"fork":false,"pushed_at":"2021-02-11T16:51:58.000Z","size":150,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-31T11:49:35.718Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/eight04.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2017-12-28T08:28:48.000Z","updated_at":"2022-05-26T10:39:37.000Z","dependencies_parsed_at":"2022-08-13T19:10:50.029Z","dependency_job_id":null,"html_url":"https://github.com/eight04/rollup-plugin-inline-js","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Frollup-plugin-inline-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Frollup-plugin-inline-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Frollup-plugin-inline-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eight04%2Frollup-plugin-inline-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eight04","download_url":"https://codeload.github.com/eight04/rollup-plugin-inline-js/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238223584,"owners_count":19436717,"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-07-31T05:01:23.594Z","updated_at":"2025-10-25T23:30:29.043Z","avatar_url":"https://github.com/eight04.png","language":"JavaScript","readme":"rollu-plugin-inline-js\n======================\n\n[![Build Status](https://travis-ci.com/eight04/rollup-plugin-inline-js.svg?branch=master)](https://travis-ci.com/eight04/rollup-plugin-inline-js)\n[![Coverage Status](https://coveralls.io/repos/github/eight04/rollup-plugin-inline-js/badge.svg?branch=master)](https://coveralls.io/github/eight04/rollup-plugin-inline-js?branch=master)\n[![install size](https://packagephobia.now.sh/badge?p=rollup-plugin-inline-js)](https://packagephobia.now.sh/result?p=rollup-plugin-inline-js)\n\n[Rollup](https://github.com/rollup/rollup) with [inline-js](https://www.npmjs.com/package/inline-js). This might be useful if you build the source with rollup and want to inline some static assets at build-time.\n\nInstallation\n------------\n\n```\nnpm install -D rollup-plugin-inline-js\n```\n\nUsage\n-----\n\n```js\nimport inline from \"rollup-plugin-inline-js\";\n\nexport default {\n  input: \"entry.js\",\n  output: {\n    file: \"dist/output.js\",\n    format: \"es\"\n  },\n  plugins: [inline()]\n};\n```\n\nThis plugin would replace `$inline` directives in the source, just like [inline-js](https://www.npmjs.com/package/inline-js).\n\nConfiguration\n-------------\n\nThe `.inline.js` config file works as intended.\n\nAPI\n----\n\nThis module exports a single function.\n\n### createPlugin\n\n```js\nconst plugin = createPlugin({\n  include?: Array\u003cString\u003e,\n  exclude?: Array\u003cString\u003e,\n  inlineOptions?: Object\n});\n```\n\nCreate the plugin instance.\n\n`include` - a list of glob patterns. The plugin would only process matched files. Default to process all files.\n\n`exclude` - a list of glob patterns. The plugin would ignore matched files. Default: `[]`.\n\nThe `inlineOptions` object would be passed to [`createInliner` function](https://github.com/eight04/inline-js-core#createinliner).\n\nChangelog\n---------\n\n* 0.5.0 (Feb 12, 2021)\n\n  - Bump dependencies. **Upgrade to rollup@2.38.5**.\n\n* 0.4.0 (Jun 6, 2019)\n\n  - Bump dependencies. **Upgrade to rollup@1.14.1.**\n  - Fix: remove deprecated `dependencies` array.\n\n* 0.3.0 (Aug 5, 2018)\n\n  - **The plugin had been rewritten and it works in a different way.**\n  - The plugin now transform the source file. So now you can write `$inline` directives in the source file just like using `inline-js` CLI.\n\n* 0.2.1 (Jul 22, 2018)\n\n  - Fix: exclude useless stuff in the package.\n\n* 0.2.0 (Jul 22, 2018)\n\n  - Update dependencies. `node.js@8.x`, `rollup@\u003e=0.61`, `inline-js-core@0.4.x`.\n\n* 0.1.0 (Dec 28, 2017)\n\n  - First release.\n","funding_links":[],"categories":["JavaScript"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feight04%2Frollup-plugin-inline-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feight04%2Frollup-plugin-inline-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feight04%2Frollup-plugin-inline-js/lists"}