{"id":22609239,"url":"https://github.com/josuerios/assets-inject-webpack-plugin","last_synced_at":"2026-05-04T19:38:56.154Z","repository":{"id":133359771,"uuid":"98681382","full_name":"josuerios/assets-inject-webpack-plugin","owner":"josuerios","description":null,"archived":false,"fork":false,"pushed_at":"2023-12-15T14:39:40.000Z","size":33,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-05T00:28:28.627Z","etag":null,"topics":["inject","plugin","webpack"],"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/josuerios.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":"2017-07-28T19:31:31.000Z","updated_at":"2017-08-01T03:14:41.000Z","dependencies_parsed_at":"2023-12-15T15:52:04.926Z","dependency_job_id":null,"html_url":"https://github.com/josuerios/assets-inject-webpack-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/josuerios/assets-inject-webpack-plugin","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josuerios%2Fassets-inject-webpack-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josuerios%2Fassets-inject-webpack-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josuerios%2Fassets-inject-webpack-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josuerios%2Fassets-inject-webpack-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josuerios","download_url":"https://codeload.github.com/josuerios/assets-inject-webpack-plugin/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josuerios%2Fassets-inject-webpack-plugin/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32622723,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"ssl_error","status_checked_at":"2026-05-04T10:08:02.005Z","response_time":58,"last_error":"SSL_read: 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":["inject","plugin","webpack"],"created_at":"2024-12-08T15:11:36.051Z","updated_at":"2026-05-04T19:38:56.129Z","avatar_url":"https://github.com/josuerios.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# assets-inject-webpack-plugin\n\nInject assets into any kind of template, using the core implementation of [gulp-inject](https://github.com/klei/gulp-inject).\nIn fact the plugin constructor uses the API of gulp-inject.\n\n## Usage\n````js \nconst path = require('path');\nconst CleanWebpackPlugin = require('clean-webpack-plugin');\nconst AssetsInjectPlugin = require('assets-inject-webpack-plugin');\n\n//same options object of [gulp-inject](https://github.com/klei/gulp-inject)\nconst injectOpt = {addPrefix:'my-app'};\n\nconst config = {\n\tentry: {\n\t\tapp: './src/client/index.js',\n\t\tprint: './src/client/print.js',\n\t},\n\toutput: {\n\t\tfilename: '[name].js',\n\t\tpath: path.resolve(__dirname, 'dist')\n\t},\n\tplugins: [\n\t\tnew CleanWebpackPlugin(['dist']),\n\t\tnew AssetsInjectPlugin('./src/server/layout/layout.jade', injectOpt)\n\t]\n};\nmodule.exports = config;\n\n````\n## List of compatible file template types:\n* Jade/Pug `.jade/.pug`\n* HTML `.html`\n* JSX `.jsx`\n* LESS `.less`\n* SASS/SCSS `.sass/.scss`\n\nContribute\n===============\n\nCommit Messages\n-------\nRules are adopted from [the AngularJS commit conventions](https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/).\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosuerios%2Fassets-inject-webpack-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosuerios%2Fassets-inject-webpack-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosuerios%2Fassets-inject-webpack-plugin/lists"}