@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.
@@ -111,6 +111,7 @@ declare const config: {
111
111
  [key: string]: any;
112
112
  };
113
113
  watch: boolean;
114
+ liveReloading: boolean;
114
115
  port: number;
115
116
  openBrowser: boolean;
116
117
  showLinkedPackages: boolean;
@@ -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
  },
@@ -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
@@ -1,6 +1,6 @@
1
1
  export const assetsSizes = {
2
2
  webp: [24, 48, 72, 96, 128, 256, 512],
3
- png: [128, 300, 512, 1080],
3
+ png: [24, 48, 128, 300, 512, 1080],
4
4
  screenshots: [
5
5
  // Phone 9:16
6
6
  { width: 720, height: 1280 },
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
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@michijs/dev-server",
3
3
  "license": "MIT",
4
- "version": "0.8.16",
4
+ "version": "0.8.17",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "https://github.com/michijs/dev-server.git"