{"id":15065722,"url":"https://github.com/lizheming/think-webpack-dev-middleware","last_synced_at":"2025-04-10T13:32:35.111Z","repository":{"id":55002166,"uuid":"76764241","full_name":"lizheming/think-webpack-dev-middleware","owner":"lizheming","description":"webpack dev middleware for ThinkJS","archived":false,"fork":false,"pushed_at":"2021-01-16T04:33:44.000Z","size":15,"stargazers_count":6,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-06T20:09:14.605Z","etag":null,"topics":["middleware","thinkjs","webpack","webpack2"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lizheming.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":"2016-12-18T05:18:23.000Z","updated_at":"2025-01-04T13:55:07.000Z","dependencies_parsed_at":"2022-08-14T08:40:54.571Z","dependency_job_id":null,"html_url":"https://github.com/lizheming/think-webpack-dev-middleware","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/lizheming%2Fthink-webpack-dev-middleware","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizheming%2Fthink-webpack-dev-middleware/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizheming%2Fthink-webpack-dev-middleware/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lizheming%2Fthink-webpack-dev-middleware/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lizheming","download_url":"https://codeload.github.com/lizheming/think-webpack-dev-middleware/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248225707,"owners_count":21068078,"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":["middleware","thinkjs","webpack","webpack2"],"created_at":"2024-09-25T00:46:34.318Z","updated_at":"2025-04-10T13:32:35.083Z","avatar_url":"https://github.com/lizheming.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# think-webpack-dev-middleware\nwebpack dev middleware for ThinkJS\n\n## Installation\n\n```\n$ npm install think-webpack-dev-middleware\n```\n\n## How To Use in ThinkJS 2.x\n\n1. add hook in `src/common/config/hook.js`\n\n    ```\n    export default {\n      resource: ['webpack-dev']\n    }\n    ```\n\n2. add hook middleware in `src/common/bootstrap/middleware.js`\n\n    ```\n    import webpackDevMiddleware from 'think-webpack-dev-middleware';\n    import webpack from 'webpack';\n    import config from '../../../webpack.config.js';\n\n    const compiler = webpack(config);\n\n    think.middleware('webpack-dev', responseMiddleware(\n      compiler,\n      {\n        stat: { color: true }\n      }\n    ));\n    ```\n\n## Advanced Configuration\n\n  See [webpack-dev-middleware](https://github.com/webpack/webpack-dev-middleware#usage) to find more usage.\n\n## License\n\n[GPL-3.0](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flizheming%2Fthink-webpack-dev-middleware","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flizheming%2Fthink-webpack-dev-middleware","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flizheming%2Fthink-webpack-dev-middleware/lists"}