@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 +1 @@
|
|
|
1
|
-
import{join}from"node:path";import WebpackDevServer from"webpack-dev-server";export const addCompilerToDevServer=(e,r,t
|
|
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 {
|