@despia/local 1.0.6 → 1.0.7

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.
Files changed (2) hide show
  1. package/README.md +4 -3
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -649,6 +649,7 @@ The generated `despia/local.json` file contains an object with the entry HTML pa
649
649
  {
650
650
  "entry": "/index.html",
651
651
  "assets": [
652
+ "/index.html",
652
653
  "/assets/app.abc123.css",
653
654
  "/assets/app.def456.js",
654
655
  "/assets/logo.xyz789.png"
@@ -656,8 +657,8 @@ The generated `despia/local.json` file contains an object with the entry HTML pa
656
657
  }
657
658
  ```
658
659
 
659
- - **`entry`**: The entry HTML file path (e.g., `/index.html`). **Required** - Local apps always need an entry point for client-side rendering. When `skipEntryHtml` is enabled, the entry is still required in the manifest but won't be included in the `assets` array.
660
- - **`assets`**: A sorted array of all asset paths (excluding the entry file).
660
+ - **`entry`**: The entry HTML file path (e.g., `/index.html`). **Required** - Local apps always need an entry point for client-side rendering. The entry path is also included in the `assets` array (unless `skipEntryHtml` is enabled).
661
+ - **`assets`**: A sorted array of all asset paths, **including the entry file**. When `skipEntryHtml` is enabled, the entry is still required in the manifest but won't be included in the `assets` array.
661
662
 
662
663
  ## Examples
663
664
 
@@ -748,7 +749,7 @@ export default defineConfig({
748
749
  2. **Scan Output Directory** - Recursively scans the build output directory for all files
749
750
  3. **Collect Asset Paths** - Collects paths from both the build tool's bundle metadata and file system
750
751
  4. **Normalize Paths** - Converts all paths to root-relative format (starting with `/`)
751
- 5. **Separate Entry from Assets** - Identifies the entry HTML file and separates it from other assets
752
+ 5. **Include Entry in Assets** - Identifies the entry HTML file and includes it in the assets array (unless `skipEntryHtml` is enabled)
752
753
  6. **Sort & Write** - Sorts asset paths alphabetically and writes object format `{ entry, assets }` to `despia/local.json`
753
754
 
754
755
  The generated manifest is then used by Despia during app hydration and updates to ensure all assets are properly cached for offline operation.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@despia/local",
3
- "version": "1.0.6",
3
+ "version": "1.0.7",
4
4
  "description": "Universal build plugin to generate despia/local.json manifest for offline caching in Despia web-native apps. Supports Vite, Webpack, Rollup, Nuxt, SvelteKit, Astro, Remix, esbuild, Parcel, and more.",
5
5
  "type": "module",
6
6
  "main": "./src/core.js",