@plaudit/webpack-extensions 2.25.2 → 2.26.0

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.
@@ -73,7 +73,7 @@ class BrowserSyncPlugin {
73
73
  }, {});
74
74
  const portInjectionPattern = new RegExp(`(${prefixes.join('|')})(?!:3000)`, "gi");
75
75
  return (0, http_proxy_middleware_1.createProxyMiddleware)({
76
- changeOrigin: true, router, secure: false, xfwd: true, selfHandleResponse: true,
76
+ changeOrigin: true, router, secure: false, xfwd: true, selfHandleResponse: true, target: `https://${targetHost}`,
77
77
  on: {
78
78
  proxyRes: (0, http_proxy_middleware_1.responseInterceptor)(async (responseBuffer, proxyRes) => {
79
79
  const contentType = proxyRes.headers["content-type"];
@@ -222,7 +222,7 @@ function processIndividualWebpackConfig(config, webpackConfig, sources) {
222
222
  }
223
223
  else {
224
224
  scriptExtension = scriptWithoutModuleExtension;
225
- entrypointFields = ["editorStyle", "style", "editorScript", "viewScript", "script"];
225
+ entrypointFields = ["editorStyle", "viewStyle", "style", "editorScript", "viewScript", "script"];
226
226
  }
227
227
  const { standaloneBlocks, variablesFilePath, verbose } = config;
228
228
  let currentVariables = config.currentVariables;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@plaudit/webpack-extensions",
3
- "version": "2.25.2",
3
+ "version": "2.26.0",
4
4
  "scripts": {
5
5
  "prepublishOnly": "rm -rf build && mkdir build && tsc",
6
6
  "build": "tsc",