@flatjs/evolve 1.8.1-next.95 → 1.8.1-next.97
Sign up to get free protection for your applications and to get access to all the features.
package/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
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
|
+
|
9
|
+
## 1.8.1-next.96
|
10
|
+
|
11
|
+
### Patch Changes
|
12
|
+
|
13
|
+
- Updated dependencies [41ca502]
|
14
|
+
- @flatjs/mock@1.8.1-next.74
|
15
|
+
|
3
16
|
## 1.8.1-next.95
|
4
17
|
|
5
18
|
### Patch Changes
|
@@ -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 {
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@flatjs/evolve",
|
3
|
-
"version": "1.8.1-next.
|
3
|
+
"version": "1.8.1-next.97",
|
4
4
|
"license": "MIT",
|
5
5
|
"type": "module",
|
6
6
|
"exports": {
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"@flatjs/evolve-preset-babel": "1.8.1-next.17",
|
48
48
|
"@flatjs/forge-postcss-plugin-pixel": "1.8.1-next.35",
|
49
49
|
"@flatjs/graph": "1.8.1-next.50",
|
50
|
-
"@flatjs/mock": "1.8.1-next.
|
50
|
+
"@flatjs/mock": "1.8.1-next.74",
|
51
51
|
"@pmmmwh/react-refresh-webpack-plugin": "0.5.10",
|
52
52
|
"@types/babel__core": "7.20.1",
|
53
53
|
"babel-loader": "9.1.3",
|