@best-shot/dev-server 0.18.4 → 0.19.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.
- package/lib/server.mjs +3 -0
- package/middleware/wait-page/index.mjs +8 -5
- package/package.json +7 -7
package/lib/server.mjs
CHANGED
|
@@ -8,14 +8,17 @@ export function apply(compiler) {
|
|
|
8
8
|
webpackDevServerWaitpage.plugin().apply(compiler);
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
export function middleware(
|
|
11
|
+
export function middleware({ compiler }) {
|
|
12
12
|
const template = readFileSync(
|
|
13
13
|
new URL('./template.ejs', import.meta.url),
|
|
14
14
|
'utf8',
|
|
15
15
|
);
|
|
16
16
|
|
|
17
|
-
return webpackDevServerWaitpage(
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
17
|
+
return webpackDevServerWaitpage(
|
|
18
|
+
{ middleware: { context: { compiler } } },
|
|
19
|
+
{
|
|
20
|
+
template,
|
|
21
|
+
ignore: (req) => isRaw(req.url),
|
|
22
|
+
},
|
|
23
|
+
);
|
|
21
24
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@best-shot/dev-server",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.19.0",
|
|
4
4
|
"description": "DevServer support of `@best-shot/cli`",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": {
|
|
@@ -32,19 +32,19 @@
|
|
|
32
32
|
"main": "index.mjs",
|
|
33
33
|
"type": "module",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"chalk": "^5.
|
|
35
|
+
"chalk": "^5.4.0",
|
|
36
36
|
"ejs": "^3.1.10",
|
|
37
|
-
"express": "^4.21.
|
|
37
|
+
"express": "^4.21.2",
|
|
38
38
|
"launch-editor-middleware": "^2.9.1",
|
|
39
|
-
"webpack-dev-server": "~5.0
|
|
39
|
+
"webpack-dev-server": "~5.2.0",
|
|
40
40
|
"webpack-dev-server-waitpage": "^3.0.0",
|
|
41
|
-
"@best-shot/config": "~0.
|
|
41
|
+
"@best-shot/config": "~0.7.0"
|
|
42
42
|
},
|
|
43
43
|
"peerDependencies": {
|
|
44
|
-
"@best-shot/cli": "~0.
|
|
44
|
+
"@best-shot/cli": "~0.17.0"
|
|
45
45
|
},
|
|
46
46
|
"engines": {
|
|
47
|
-
"node": ">=22.
|
|
47
|
+
"node": ">=22.11.0 || ^18.20.4 || ^20.15.0"
|
|
48
48
|
},
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public",
|