@xh/hoist-dev-utils 10.0.0 → 11.0.0-SNAPSHOT.1745616579400

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.
@@ -108,6 +108,7 @@ try {
108
108
  * @param {(boolean|Object)} [env.devHttps] - `true` to run webpack-dev-server locally over SSL w/o providing a cert
109
109
  * (browser will warn). Or provide an object that will be passed to `devServer.server.options` to enable SSL and
110
110
  * while specifying a custom cert/key. Default `false` runs locally over HTTP only. Dev-mode only.
111
+ * @param {Object} [env.devServerOptions] - options to spread onto / override defaults passed here to the devServer.
111
112
  */
112
113
  async function configureWebpack(env) {
113
114
  if (!env.appCode) throw 'Missing required "appCode" config - cannot proceed';
@@ -132,6 +133,7 @@ async function configureWebpack(env) {
132
133
  devHttps = prodBuild ? null : _.isPlainObject(env.devHttps) ? env.devHttps : !!env.devHttps,
133
134
  devGrailsPort = env.devGrailsPort || 8080,
134
135
  devWebpackPort = env.devWebpackPort || 3000,
136
+ devServerOptions = env.devServerOptions || {},
135
137
  baseUrl = env.baseUrl || (prodBuild ? '/api/' : `//${devHost}:${devGrailsPort}/`),
136
138
  babelIncludePaths = env.babelIncludePaths || [],
137
139
  babelExcludePaths = env.babelExcludePaths || [],
@@ -750,7 +752,8 @@ async function configureWebpack(env) {
750
752
  to: `/${appName}/index.html?_=${Date.now()}`
751
753
  };
752
754
  })
753
- }
755
+ },
756
+ ...devServerOptions
754
757
  }
755
758
  };
756
759
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xh/hoist-dev-utils",
3
- "version": "10.0.0",
3
+ "version": "11.0.0-SNAPSHOT.1745616579400",
4
4
  "description": "Utilities for configuring builds of Hoist-React client applications.",
5
5
  "repository": {
6
6
  "type": "git",