{"id":15391722,"url":"https://github.com/indooorsman/esbuild-plugin-assets-manifest","last_synced_at":"2025-04-15T23:25:09.349Z","repository":{"id":57227319,"uuid":"397437887","full_name":"indooorsman/esbuild-plugin-assets-manifest","owner":"indooorsman","description":"Generate manifest file like assets-webpack-plugin","archived":false,"fork":false,"pushed_at":"2023-09-09T09:08:09.000Z","size":32,"stargazers_count":11,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-23T17:37:17.606Z","etag":null,"topics":["assets","esbuild-plugin","manifest"],"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/indooorsman.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-08-18T01:32:55.000Z","updated_at":"2023-07-21T21:57:44.000Z","dependencies_parsed_at":"2024-06-20T22:08:07.000Z","dependency_job_id":null,"html_url":"https://github.com/indooorsman/esbuild-plugin-assets-manifest","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/indooorsman%2Fesbuild-plugin-assets-manifest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indooorsman%2Fesbuild-plugin-assets-manifest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indooorsman%2Fesbuild-plugin-assets-manifest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/indooorsman%2Fesbuild-plugin-assets-manifest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/indooorsman","download_url":"https://codeload.github.com/indooorsman/esbuild-plugin-assets-manifest/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241201652,"owners_count":19926562,"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":["assets","esbuild-plugin","manifest"],"created_at":"2024-10-01T15:12:29.012Z","updated_at":"2025-02-28T18:31:25.714Z","avatar_url":"https://github.com/indooorsman.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# esbuild-plugin-assets-manifest\n\n[![npm version](https://img.shields.io/npm/v/esbuild-plugin-assets-manifest.svg?style=flat)](https://www.npmjs.com/package/esbuild-plugin-assets-manifest)\n[![test](https://github.com/indooorsman/esbuild-plugin-assets-manifest/actions/workflows/test.yml/badge.svg)](https://github.com/indooorsman/esbuild-plugin-assets-manifest/actions/workflows/test.yml)\n\nGenerate manifest file like [assets-webpack-plugin](https://github.com/ztoben/assets-webpack-plugin)\n\n## Usage\n\nSee [./test](https://github.com/indooorsman/esbuild-plugin-assets-manifest/tree/main/test) for example.\n\n```bash\nnpm install -D esbuild-plugin-assets-manifest\n```\n\n```js\nconst assetsManifest = require('esbuild-plugin-assets-manifest');\n\nesbuild.build({\n  // entryPoints must be object to generate expected manifest file\n  entryPoints: {\n    app: './index.js'\n  },\n  outdir: './dist',\n  target: 'esnext',\n  entryNames: '[name]-[hash]',\n  publicPath: '/static',\n  bundle: true,\n  metafile: true,\n  plugins: [\n    assetsManifest({\n      filename: 'myapp-manifest.json',\n      path: './dist',\n      metadata: { timestamp: new Date(), module: 'myapp', type: 'esm' },\n      processOutput(assets) {\n        const orderAssets = {\n          app: assets['app'],\n          ...assets\n        };\n        return JSON.stringify(orderAssets, null, '  ');\n      }\n    })\n  ]\n});\n```\n\n### Configuration\n\nSee [index.d.ts](https://github.com/indooorsman/esbuild-plugin-assets-manifest/tree/main/index.d.ts)\n\n### Output\n\n```js\n// myapp-manifest.json\n{\n  \"app\": {\n    \"js\": \"/static/app-VYODTBBJ.js\",\n    \"css\": \"/static/app-GXI4CST6.css\"\n  },\n  \"\": {\n    \"jpg\": [\n      \"/static/world-7U6P4ADE.jpg\"\n    ]\n  },\n  \"metadata\": {\n    \"timestamp\": \"2022-01-30T03:45:07.655Z\",\n    \"module\": \"myapp\",\n    \"type\": \"esm\"\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findooorsman%2Fesbuild-plugin-assets-manifest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Findooorsman%2Fesbuild-plugin-assets-manifest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Findooorsman%2Fesbuild-plugin-assets-manifest/lists"}