File tree Expand file tree Collapse file tree 3 files changed +32
-22
lines changed Expand file tree Collapse file tree 3 files changed +32
-22
lines changed Original file line number Diff line number Diff line change 4
4
"type" : " module" ,
5
5
"private" : true ,
6
6
"scripts" : {
7
- "build" : " svelte-kit build" ,
8
- "dev" : " svelte-kit dev" ,
7
+ "build" : " vite build" ,
8
+ "dev" : " vite dev" ,
9
9
"format" : " prettier --write --plugin-search-dir=. ." ,
10
10
"lint" : " prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore ." ,
11
11
"pre-build" : " cd build-system/pre-build && webpack && cd .." ,
12
- "preview" : " svelte-kit preview"
12
+ "preview" : " vite preview"
13
13
},
14
14
"dependencies" : {
15
15
"@fontsource/fira-mono" : " ^4.2.2" ,
27
27
"prettier" : " ^2.3.0" ,
28
28
"prettier-plugin-svelte" : " ^2.3.0" ,
29
29
"string-replace-loader" : " ^3.0.1" ,
30
+ "vite" : " ^3.0.2" ,
30
31
"webpack" : " ^5.37.1" ,
31
32
"webpack-cli" : " ^4.7.0" ,
32
33
"wrapper-webpack-plugin" : " ^2.1.0"
Original file line number Diff line number Diff line change 1
1
import staticAdapter from '@sveltejs/adapter-static' ;
2
- import { resolve } from 'path' ;
3
2
4
3
/** @type {import('@sveltejs/kit').Config } */
5
4
const config = {
@@ -15,24 +14,8 @@ const config = {
15
14
assets : 'build' ,
16
15
fallback : null
17
16
} ) ,
18
- vite : {
19
- server : {
20
- fs : { strict : false }
21
- } ,
22
- resolve : {
23
- alias : {
24
- assert : resolve ( './build-system/shim/assert.js' ) ,
25
- path : resolve ( './build-system/shim/path.js' ) ,
26
- fs : resolve ( './build-system/shim/fs.js' ) ,
27
- module : resolve ( './build-system/shim/module.js' ) ,
28
-
29
- globby : resolve ( './build-system/shim/globby.js' ) ,
30
- tslib : resolve ( './node_modules/tslib/tslib.es6.js' ) ,
31
- eslint : resolve ( './build-system/shim/eslint.js' ) ,
32
- 'svelte-eslint-parser' : resolve ( './build-system/shim/svelte-eslint-parser.js' ) ,
33
- 'eslint-plugin-svelte3' : resolve ( './build-system/shim/eslint-plugin-svelte3.js' )
34
- }
35
- }
17
+ prerender : {
18
+ default : true
36
19
}
37
20
}
38
21
} ;
Original file line number Diff line number Diff line change
1
+ import { sveltekit } from '@sveltejs/kit/vite' ;
2
+ import { resolve } from 'path' ;
3
+
4
+ /** @type {import('vite').UserConfig } */
5
+ const config = {
6
+ plugins : [ sveltekit ( ) ] ,
7
+ server : {
8
+ fs : { strict : false }
9
+ } ,
10
+ resolve : {
11
+ alias : {
12
+ assert : resolve ( './build-system/shim/assert.js' ) ,
13
+ path : resolve ( './build-system/shim/path.js' ) ,
14
+ fs : resolve ( './build-system/shim/fs.js' ) ,
15
+ module : resolve ( './build-system/shim/module.js' ) ,
16
+
17
+ globby : resolve ( './build-system/shim/globby.js' ) ,
18
+ tslib : resolve ( './node_modules/tslib/tslib.es6.js' ) ,
19
+ eslint : resolve ( './build-system/shim/eslint.js' ) ,
20
+ 'svelte-eslint-parser' : resolve ( './build-system/shim/svelte-eslint-parser.js' ) ,
21
+ 'eslint-plugin-svelte3' : resolve ( './build-system/shim/eslint-plugin-svelte3.js' )
22
+ }
23
+ }
24
+ } ;
25
+
26
+ export default config ;
You can’t perform that action at this time.
0 commit comments