* @param {Webpack} webpack webpack * @param {Configuration} config configuration * @param {(err: Error | null, stats?: Stats) => void} callback callback * @returns {Promise<Watching>} watching
(webpack, config, callback)
| 432 | * @returns {Promise<Watching>} watching |
| 433 | */ |
| 434 | async function runWatch(webpack, config, callback) { |
| 435 | const compiler = webpack(config); |
| 436 | return /** @type {Watching} */ (compiler.watch({}, callback)); |
| 437 | } |
| 438 | |
| 439 | /** @typedef {{ name: string, mode: "development" | "production", watch?: boolean }} Scenario */ |
| 440 |