@flatjs/evolve 1.8.1-next.96 → 1.8.1-next.97

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @flatjs/evolve
2
2
 
3
+ ## 1.8.1-next.97
4
+
5
+ ### Patch Changes
6
+
7
+ - 5754203: Add `liveReload` options of devserver to allow forced reload
8
+
3
9
  ## 1.8.1-next.96
4
10
 
5
11
  ### Patch Changes
@@ -1 +1 @@
1
- import{join}from"node:path";import WebpackDevServer from"webpack-dev-server";export const addCompilerToDevServer=(e,r,t,o)=>{const{projectCwd:p,devServer:s}=o,l=new WebpackDevServer({server:{type:s?.https?"https":"http",options:{...s?.https}},open:!1,compress:!0,port:t,hot:r,liveReload:!r,allowedHosts:"all",static:{directory:`${join(p,"/public")}`},headers:{"Access-Control-Allow-Origin":"*"},client:{progress:!0,overlay:s?.clientOverlay}},e);return new Promise(((e,r)=>{l.startCallback((t=>{if(t)return r(t);e(!0)}))}))};
1
+ import{join}from"node:path";import WebpackDevServer from"webpack-dev-server";export const addCompilerToDevServer=(e,r,o,t)=>{const{projectCwd:p,devServer:s}=t,l=!0===s?.liveReload||!r,i=new WebpackDevServer({server:{type:s?.https?"https":"http",options:{...s?.https}},open:!1,compress:!0,port:o,hot:!l,liveReload:l,allowedHosts:"all",static:{directory:`${join(p,"/public")}`},headers:{"Access-Control-Allow-Origin":"*"},client:{progress:!0,overlay:s?.clientOverlay}},e);return new Promise(((e,r)=>{i.startCallback((o=>{if(o)return r(o);e(!0)}))}))};
@@ -41,6 +41,11 @@ export type FlatEvolveDevServerOptions = {
41
41
  * @default true
42
42
  */
43
43
  autoOpen?: boolean;
44
+ /**
45
+ * Enables reload/refresh the page(s) when file changes are detected (`auto` by default).
46
+ * @default undefined
47
+ */
48
+ liveReload?: true;
44
49
  /**
45
50
  * Enables a full-screen overlay in the browser when there are compiler errors or warnings.
46
51
  * @default {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flatjs/evolve",
3
- "version": "1.8.1-next.96",
3
+ "version": "1.8.1-next.97",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "exports": {