weboptimizer 2.0.1423 → 2.0.1425

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "weboptimizer",
3
- "version": "2.0.1423",
3
+ "version": "2.0.1425",
4
4
  "description": "A generic web optimizer, (module) bundler and development environment.",
5
5
  "keywords": [
6
6
  "webpack",
@@ -539,6 +539,7 @@
539
539
  "contextType": "main",
540
540
  "debug": false,
541
541
  "development": {
542
+ "includeClient": null,
542
543
  "server": {
543
544
  "client": false,
544
545
  "compress": {
package/type.d.ts CHANGED
@@ -265,6 +265,7 @@ export interface ResolvedConfiguration {
265
265
  contextType: string;
266
266
  debug: boolean;
267
267
  development: {
268
+ includeClient?: boolean | null;
268
269
  server: (WebpackOptionsNormalized['devServer'] & {
269
270
  hot: boolean;
270
271
  host: string;
@@ -943,7 +943,7 @@ if (configuration.files.compose.cascadingStyleSheet && plugins.MiniCSSExtract) {
943
943
  last module which would shadow main module (e.g. index).
944
944
  So we inject live reload and hot module replacement manually.
945
945
  */
946
- if (htmlAvailable && configuration.debug && configuration.development.server.liveReload && !configuration.injection.entry.normalized.developmentHandler && ['serve', 'test:browser'].includes(configuration.givenCommandLineArguments[2])) {
946
+ if (htmlAvailable && configuration.debug && configuration.development.server.liveReload && !configuration.injection.entry.normalized.developmentHandler && (configuration.development.includeClient || typeof configuration.development.includeClient !== 'boolean' && ['serve', 'test:browser'].includes(configuration.givenCommandLineArguments[2]))) {
947
947
  configuration.injection.entry.normalized.developmentHandler = ['webpack-dev-server/client/index.js?' + 'live-reload=' + (configuration.development.server.liveReload ? 'true' : 'false') + "&hot=".concat(configuration.development.server.hot ? 'true' : 'false') + "&http".concat(configuration.development.server.https ? 's' : '', "://") + "".concat(configuration.development.server.host, ":") + "".concat(configuration.development.server.port)];
948
948
  if (configuration.development.server.hot) {
949
949
  configuration.injection.entry.normalized.developmentHandler.push('webpack/hot/dev-server.js');