@michijs/dev-server 0.8.16 → 0.8.17
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/bin/config/config.d.ts +1 -0
- package/bin/config/config.js +2 -1
- package/bin/constants.d.ts +1 -1
- package/bin/constants.js +1 -1
- package/bin/types.d.ts +5 -0
- package/package.json +1 -1
package/bin/config/config.d.ts
CHANGED
package/bin/config/config.js
CHANGED
|
@@ -25,6 +25,7 @@ const config = {
|
|
|
25
25
|
openBrowser: process.env.NODE_ENV === "DEVELOPMENT",
|
|
26
26
|
showLinkedPackages: true,
|
|
27
27
|
additionalHeaders: {},
|
|
28
|
+
liveReloading: true,
|
|
28
29
|
watch: process.env.NODE_ENV === "DEVELOPMENT",
|
|
29
30
|
...userConfig,
|
|
30
31
|
// protocol: 'http',
|
|
@@ -113,7 +114,7 @@ const config = {
|
|
|
113
114
|
}),
|
|
114
115
|
},
|
|
115
116
|
inject: [
|
|
116
|
-
...devServerListener,
|
|
117
|
+
...(userConfig.liveReloading ? devServerListener : []),
|
|
117
118
|
...(userConfig.esbuildOptions?.inject ?? []),
|
|
118
119
|
],
|
|
119
120
|
},
|
package/bin/constants.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { ServerConfigFactoryProps } from "./types.js";
|
|
2
2
|
export declare const assetsSizes: {
|
|
3
3
|
readonly webp: readonly [24, 48, 72, 96, 128, 256, 512];
|
|
4
|
-
readonly png: readonly [128, 300, 512, 1080];
|
|
4
|
+
readonly png: readonly [24, 48, 128, 300, 512, 1080];
|
|
5
5
|
readonly screenshots: {
|
|
6
6
|
width: number;
|
|
7
7
|
height: number;
|
package/bin/constants.js
CHANGED
package/bin/types.d.ts
CHANGED
|
@@ -158,6 +158,11 @@ export interface Config {
|
|
|
158
158
|
* @default true
|
|
159
159
|
*/
|
|
160
160
|
watch?: boolean;
|
|
161
|
+
/**
|
|
162
|
+
* If the server should enable live reloading
|
|
163
|
+
* @default true
|
|
164
|
+
*/
|
|
165
|
+
liveReloading?: boolean;
|
|
161
166
|
/**
|
|
162
167
|
* Port to run dev server on
|
|
163
168
|
* @default 3000
|