File tree 7 files changed +50
-0
lines changed
7 files changed +50
-0
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ ' create-svelte ' : patch
3
+ ---
4
+
5
+ Add methodOverrides to default configs
Original file line number Diff line number Diff line change
1
+ import adapter from '@sveltejs/adapter-auto' ;
2
+ import preprocess from 'svelte-preprocess' ;
3
+
4
+ /** @type {import('@sveltejs/kit').Config } */
5
+ const config = {
6
+ // Consult https://github.com/sveltejs/svelte-preprocess
7
+ // for more information about preprocessors
8
+ preprocess : preprocess ( ) ,
9
+
10
+ kit : {
11
+ adapter : adapter ( ) ,
12
+
13
+ // hydrate the <div id="svelte"> element in src/app.html
14
+ target : '#svelte' ,
15
+
16
+ // Override http methods in the Todo forms
17
+ methodOverride : {
18
+ allowed : [ 'PATCH' , 'DELETE' ]
19
+ }
20
+ }
21
+ } ;
22
+
23
+ export default config ;
Original file line number Diff line number Diff line change
1
+ import adapter from '@sveltejs/adapter-auto' ;
2
+
3
+ /** @type {import('@sveltejs/kit').Config } */
4
+ const config = {
5
+ kit : {
6
+ adapter : adapter ( ) ,
7
+
8
+ // hydrate the <div id="svelte"> element in src/app.html
9
+ target : '#svelte' ,
10
+
11
+ // Override http methods in the Todo forms
12
+ methodOverride : {
13
+ allowed : [ 'PATCH' , 'DELETE' ]
14
+ }
15
+ }
16
+ } ;
17
+
18
+ export default config ;
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change 1
1
import adapter from '@sveltejs/adapter-auto' ;
2
2
import preprocess from 'svelte-preprocess' ;
3
3
4
+ // This config is ignored and replaced with one of the configs in the shared folder when a project is created.
5
+
4
6
/** @type {import('@sveltejs/kit').Config } */
5
7
const config = {
6
8
// Consult https://github.com/sveltejs/svelte-preprocess
Original file line number Diff line number Diff line change 1
1
import adapter from '@sveltejs/adapter-auto' ;
2
2
3
+ // This config is ignored and replaced with one of the configs in the shared folder when a project is created.
4
+
3
5
/** @type {import('@sveltejs/kit').Config } */
4
6
const config = {
5
7
kit : {
You can’t perform that action at this time.
0 commit comments