{"id":23908483,"url":"https://github.com/fudanfuhua/html-webpack-insert-plugin","last_synced_at":"2026-05-17T10:36:16.181Z","repository":{"id":57267755,"uuid":"103806325","full_name":"fudanfuhua/html-webpack-insert-plugin","owner":"fudanfuhua","description":"use webpack to issert js or css to html templete","archived":false,"fork":false,"pushed_at":"2017-09-21T13:08:03.000Z","size":7,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-05T08:16:17.223Z","etag":null,"topics":["assets","insert","insertion-sort","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/fudanfuhua.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-09-17T05:50:07.000Z","updated_at":"2020-08-14T02:06:25.000Z","dependencies_parsed_at":"2022-08-26T13:11:51.235Z","dependency_job_id":null,"html_url":"https://github.com/fudanfuhua/html-webpack-insert-plugin","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fudanfuhua%2Fhtml-webpack-insert-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fudanfuhua%2Fhtml-webpack-insert-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fudanfuhua%2Fhtml-webpack-insert-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/fudanfuhua%2Fhtml-webpack-insert-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/fudanfuhua","download_url":"https://codeload.github.com/fudanfuhua/html-webpack-insert-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240332873,"owners_count":19784912,"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","insert","insertion-sort","webpack"],"created_at":"2025-01-05T04:37:59.186Z","updated_at":"2026-05-17T10:36:11.138Z","avatar_url":"https://github.com/fudanfuhua.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# html-webpack-insert-plugin\n\n[![Travis CI build status](https://img.shields.io/travis/danawoodman/react-fontawesome.svg)](https://travis-ci.org/danawoodman/react-fontawesome)\n[![Dependency Status](https://img.shields.io/david/danawoodman/react-fontawesome.svg)](https://david-dm.org/danawoodman/react-fontawesome)\n[![View on npm](https://img.shields.io/npm/dm/react-fontawesome.svg)](https://www.npmjs.com/package/react-fontawesome)\n[![View on npm](https://img.shields.io/npm/v/react-fontawesome.svg)](https://www.npmjs.com/package/react-fontawesome)\n\n\u003e use \"html-webpack-insert-plugin\" to issert js or css to html templete, must work in with \"html-webpack-plugin\".\n\n\n## Install\n\n```\nnpm install --save-dev html-webpack-insert-plugin\n```\n\n## Usage\n\n```js\nconst HtmlWebpackInsertPlugin = require('html-webpack-insert-plugin');\n\nplugins: [\n    new HtmlWebpackPlugin({\n        ...\n    }),\n    new HtmlWebpackInsertPlugin({\n        paths: {\n            js: [...],\n            css: [...]\n        }\n    })\n]\n```\n\n## Examples\n\n```js\nconst HtmlWebpackInsertPlugin = require('html-webpack-insert-plugin');\n\nplugins: [\n    new HtmlWebpackPlugin({\n        title: 'bundle1',\n        template: path.join(__dirname, 'src/template', 'index.html');,\n        inject: 'body',\n        filename: path.join(__dirname, 'tmp', 'index.html')\n    }),\n    new HtmlWebpackInsertPlugin({\n        paths: {\n            js: [\n                \"/asset/layer-mobile/layer.js\",\n                \"/asset/js/zepto/zepto.min.js\",\n                \"/asset/js/sm/sm.js\",\n                \"/asset/js/sm/sm-city-picker.min.js\",\n                \"/asset/js/fastclick/fastclick.min.js\"\n            ],\n            css: [\n                \"/asset/css/font-awesome/css/font-awesome.min.css\",\n                \"/asset/layer-mobile/need/layer.css\",\n                \"/asset/css/citypicker.css\",\n                \"https://wq.koko.com/promote/css/works.css\"\n            ]\n        }\n    })\n]\n```\n\n## Contributing\n\nPull requests welcome! \n\n\n## License\n\n[MIT](license) \u0026copy; [fudanfuhua][author]\n\n\n[author]: https://github.com/fudanfuhua\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffudanfuhua%2Fhtml-webpack-insert-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffudanfuhua%2Fhtml-webpack-insert-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffudanfuhua%2Fhtml-webpack-insert-plugin/lists"}