{"id":15668865,"url":"https://github.com/jaydenseric/webpack-watch-server","last_synced_at":"2025-05-05T23:54:19.115Z","repository":{"id":65412539,"uuid":"86993684","full_name":"jaydenseric/webpack-watch-server","owner":"jaydenseric","description":"A single npm script command to start Webpack and your server in watch mode, with a unified console.","archived":false,"fork":false,"pushed_at":"2020-06-15T07:25:10.000Z","size":129,"stargazers_count":9,"open_issues_count":4,"forks_count":10,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-05-05T23:54:14.235Z","etag":null,"topics":["webpack"],"latest_commit_sha":null,"homepage":"https://npm.im/webpack-watch-server","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaydenseric.png","metadata":{"files":{"readme":"readme.md","changelog":"changelog.md","contributing":null,"funding":".github/funding.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"jaydenseric"}},"created_at":"2017-04-02T15:00:01.000Z","updated_at":"2025-01-31T11:34:26.000Z","dependencies_parsed_at":"2023-01-22T08:05:43.242Z","dependency_job_id":null,"html_url":"https://github.com/jaydenseric/webpack-watch-server","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fwebpack-watch-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fwebpack-watch-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fwebpack-watch-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaydenseric%2Fwebpack-watch-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaydenseric","download_url":"https://codeload.github.com/jaydenseric/webpack-watch-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252596396,"owners_count":21773844,"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":["webpack"],"created_at":"2024-10-03T14:20:22.769Z","updated_at":"2025-05-05T23:54:19.096Z","avatar_url":"https://github.com/jaydenseric.png","language":"JavaScript","funding_links":["https://github.com/sponsors/jaydenseric"],"categories":[],"sub_categories":[],"readme":"# webpack-watch-server\n\n[![npm version](https://badgen.net/npm/v/webpack-watch-server)](https://npm.im/webpack-watch-server) [![CI status](https://github.com/jaydenseric/webpack-watch-server/workflows/CI/badge.svg)](https://github.com/jaydenseric/webpack-watch-server/actions)\n\nA single `webpack-watch-server` command to add to your package scripts that fires up [Webpack](https://webpack.js.org) in watch mode and restarts your server each build. Webpack and server logs stream in a unified console with clear formatting and pretty colors.\n\nBy using a Webpack build callback under the hood, this package is much more efficient than using a seperate watcher (such as [Nodemon](https://nodemon.io) or [Forever](https://github.com/foreverjs/forever)) to restart the server.\n\n\u003cimg src=\"demo.gif\" width=\"500\" alt=\"webpack-watch-server demo\" /\u003e\n\n## Setup\n\nTo install from [npm](https://www.npmjs.com/get-npm) run:\n\n```sh\nnpm install webpack-watch-server --save-dev\n```\n\n## Usage\n\n1. Add `\"dev\": \"webpack-watch-server\"` to your `package.json` scripts. To specify a custom Webpack config file path use `webpack-watch-server --config path/to/custom-webpack-config.js`. The file will be transpiled with Babel if it’s name ends with `.config.babel.js`.\n2. Run `npm run dev` to start Webpack in watch mode. The server automatically starts and restarts after each build.\n\n## Caveats\n\n- It is assumed your server file is the default Node finds at the Webpack config `output.path` – `index.js` works.\n- For now, only plain object Webpack configs are supported.\n\n## Support\n\n- Node.js `^10.17.0 || ^12.0.0 || \u003e= 13.7.0`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Fwebpack-watch-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaydenseric%2Fwebpack-watch-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaydenseric%2Fwebpack-watch-server/lists"}