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 44 "type" : " module" ,
55 "private" : true ,
66 "scripts" : {
7- "build" : " svelte-kit build" ,
8- "dev" : " svelte-kit dev" ,
7+ "build" : " vite build" ,
8+ "dev" : " vite dev" ,
99 "format" : " prettier --write --plugin-search-dir=. ." ,
1010 "lint" : " prettier --check --plugin-search-dir=. . && eslint --ignore-path .gitignore ." ,
1111 "pre-build" : " cd build-system/pre-build && webpack && cd .." ,
12- "preview" : " svelte-kit preview"
12+ "preview" : " vite preview"
1313 },
1414 "dependencies" : {
1515 "@fontsource/fira-mono" : " ^4.2.2" ,
2727 "prettier" : " ^2.3.0" ,
2828 "prettier-plugin-svelte" : " ^2.3.0" ,
2929 "string-replace-loader" : " ^3.0.1" ,
30+ "vite" : " ^3.0.2" ,
3031 "webpack" : " ^5.37.1" ,
3132 "webpack-cli" : " ^4.7.0" ,
3233 "wrapper-webpack-plugin" : " ^2.1.0"
Original file line number Diff line number Diff line change 11import staticAdapter from '@sveltejs/adapter-static' ;
2- import { resolve } from 'path' ;
32
43/** @type {import('@sveltejs/kit').Config } */
54const config = {
@@ -15,24 +14,8 @@ const config = {
1514 assets : 'build' ,
1615 fallback : null
1716 } ) ,
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
3619 }
3720 }
3821} ;
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