Skip to content

Commit 06709af

Browse files
authored
Added documentation for emptyOutDir & bump to v1.4.0
1 parent 0a97f7c commit 06709af

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ export default {
2020
assets: "build",
2121
fallback: null,
2222
precompress: false,
23-
manifest: "manifest.json"
23+
manifest: "manifest.json",
24+
emptyOutDir: true,
2425
}),
2526
appDir: "app",
2627
},
@@ -50,6 +51,12 @@ If `true`, precompresses files with brotli and gzip. This will generate `.br` an
5051
Specify manifest file name if you want different manifests for different target platforms, e.g. `chrome_manifest.json`, `firefox_manifest.json`.
5152
This file name must match one that is present in the `static` directory (the dir containing your static files). The selected target file will be renamed to `manifest.json` in the build directory, and all other `.json` files with `manifest` in the name won't be copied.
5253

54+
55+
### emptyOutDir
56+
57+
Specify if the output directory should automatically be emptied when building the project. Defaults to `true`.
58+
Turn to `false` if you use alternate watch commands for which emptying the output directory may create conflicts.
59+
5360
## SPA mode
5461

5562
You can use `adapter-static` to create a single-page app or SPA by specifying a **fallback page**.

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "sveltekit-adapter-chrome-extension",
3-
"version": "1.3.0",
3+
"version": "1.4.0",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/michmich112/sveltekit-adapter-chrome-extension"

0 commit comments

Comments
 (0)