You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+7-2
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,9 @@
4
4
5
5
## Usage
6
6
7
-
Install with `npm i -D sveltekit-adapter-browser-extension`, then add the adapter to your `svelte.config.js`, and set the appDir to something without an underscore:
7
+
Install with `npm i -D sveltekit-adapter-browser-extension`, then add the adapter to your `svelte.config.js`.
8
+
9
+
Some additional configuration is required for this adapter to work - you need to (1) set ``appDir`` to something without an underscore and (2) tell kit to prerender its pages by default:
8
10
9
11
```js
10
12
// svelte.config.js
@@ -13,7 +15,10 @@ import adapter from 'sveltekit-adapter-browser-extension';
13
15
exportdefault {
14
16
kit: {
15
17
adapter:adapter(),
16
-
appDir:'ext'// This is important - chrome extensions can't handle the default _app directory name.
18
+
appDir:'ext', // This is important - chrome extensions can't handle the default _app directory name.
0 commit comments