{"id":27156604,"url":"https://github.com/inebhedj/ih-warp","last_synced_at":"2026-02-18T00:02:28.312Z","repository":{"id":286719865,"uuid":"959828343","full_name":"inebhedj/ih-warp","owner":"inebhedj","description":"IH Webpack Assets Replicator Plugin (ihWARP)","archived":false,"fork":false,"pushed_at":"2025-04-04T07:03:18.000Z","size":37,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-22T17:56:15.551Z","etag":null,"topics":["assets","copy","html","inebhedj","javascript","npm","npm-package","vanilla-javascript","vanilla-js","vanillajs","webpack","webpack-plugin","webpack5"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/inebhedj.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":"2025-04-03T12:21:08.000Z","updated_at":"2025-04-03T14:21:56.000Z","dependencies_parsed_at":"2025-04-09T21:33:39.585Z","dependency_job_id":null,"html_url":"https://github.com/inebhedj/ih-warp","commit_stats":null,"previous_names":["inebhedj/ih-warp"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/inebhedj/ih-warp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inebhedj%2Fih-warp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inebhedj%2Fih-warp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inebhedj%2Fih-warp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inebhedj%2Fih-warp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/inebhedj","download_url":"https://codeload.github.com/inebhedj/ih-warp/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/inebhedj%2Fih-warp/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29563284,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-17T21:50:49.831Z","status":"ssl_error","status_checked_at":"2026-02-17T21:46:15.313Z","response_time":100,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","copy","html","inebhedj","javascript","npm","npm-package","vanilla-javascript","vanilla-js","vanillajs","webpack","webpack-plugin","webpack5"],"created_at":"2025-04-08T20:31:08.568Z","updated_at":"2026-02-18T00:02:28.294Z","avatar_url":"https://github.com/inebhedj.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# @inebhedj/ih-warp\n\nIH Webpack Assets Replicator Plugin (ihWARP)\n\nA webpack plugin that copies assets referenced in HTML files into the output directory.\n\n## Description\n\nWebpack plugin for copying assets referenced in HTML files. This plugin scans through Webpack's output assets for HTML files,\nextracts asset references (from src, href, meta tags, etc.), and copies the referenced asset files from specified directories (assetPaths) into the Webpack output directory. Files can be excluded from processing via exceptHTML (for HTML files) and exceptAssets (for asset paths). Additionally, if the asset file's extension is listed in mapExtensions, a corresponding .map file will also be copied.\n\n## Requirements\n\n- Node.js LTS (version \u003e=20.17.0 \u003c21 || \u003e=22 \u003c23 || \u003e=24 \u003c25 || \u003e=26 \u003c27)  \n- Corresponding npm version \n- Webpack \u003e= 5 (maybe works with webpack 4)\n\n## Installation\n\n```sh\nnpm install --save-dev @inebhedj/ih-warp\n```\n\n## Example usage in webpack.config.js\n\n```javascript\nconst ihWARP = require('@inebhedj/ih-warp');\n/* other codes */\n\nmodule.exports = {\n  /* webpack configuration settings... */ \n  plugins: [\n    /* other plugins... */\n    new ihWARP({\n      assetPaths: ['./src/assets'],\n      exceptHTML: ['ignore-this.html'],\n      exceptAssets: ['ignore-this.png'],\n      mapExtensions: ['.css', '.js'],\n      verbose: true\n    })\n    /* other plugins... */\n  ]\n  /* other configuration settings... */\n};\n```\n\n### Options\n\n- `assetPaths`: Array of directory/directories where the asset files are searched.\n- `exceptHTML`: Array of HTML file paths (relative) to be excluded.\n- `exceptAssets`: Array of asset paths to be omitted from processing.\n- `mapExtensions`: Array of file extensions for which associated .map files are copied. (default: ['.css', '.js'])\n- `verbose`: Enables vlogging output.\n\n## License\n\nMPL 2.0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finebhedj%2Fih-warp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finebhedj%2Fih-warp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finebhedj%2Fih-warp/lists"}