You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Returns a Promise resolving to either `defaultPort` or next available port if the user confirms it is okay to do. If the port is taken and the user has refused to use another port, or if the terminal is not interactive and can’t present user with the choice, resolves to `null`.
Creates a Webpack compiler instance for WebpackDevServer with built-in helpful messages. Takes the `require('webpack')` entry point as the first argument. To provide the `urls` argument, use `prepareUrls()` described below.
330
+
Creates a Webpack compiler instance for WebpackDevServer with built-in helpful messages.
331
+
332
+
The `args` object accepts a number of properties:
333
+
334
+
-**appName**`string`: The name that will be printed to the terminal.
335
+
-**config**`Object`: The webpack configuration options to be provided to the webpack constructor.
336
+
-**devSocket**`Object`: Required if `useTypeScript` is `true`. This object should include `errors` and `warnings` which are functions accepting an array of errors or warnings emitted by the type checking. This is useful when running `fork-ts-checker-webpack-plugin` with `async: true` to report errors that are emitted after the webpack build is complete.
337
+
-**urls**`Object`: To provide the `urls` argument, use `prepareUrls()` described below.
338
+
-**useYarn**`boolean`: If `true`, yarn instructions will be emitted in the terminal instead of npm.
339
+
-**useTypeScript**`boolean`: If `true`, TypeScript type checking will be enabled. Be sure to provide the `devSocket` argument above if this is set to `true`.
340
+
-**webpack**`function`: A reference to the webpack constructor.
0 commit comments