-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update site and tests to use vite.config.js
- Loading branch information
Showing
23 changed files
with
273 additions
and
139 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,12 +7,6 @@ const config = { | |
|
||
prerender: { | ||
default: true | ||
}, | ||
|
||
vite: { | ||
build: { | ||
minify: false | ||
} | ||
} | ||
} | ||
}; | ||
|
12 changes: 12 additions & 0 deletions
12
packages/adapter-static/test/apps/prerendered/vite.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as path from 'path'; | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
|
||
/** @type {import('vite').UserConfig} */ | ||
const config = { | ||
build: { | ||
minify: false | ||
}, | ||
plugins: [sveltekit()] | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
import * as path from 'path'; | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
|
||
/** @type {import('vite').UserConfig} */ | ||
const config = { | ||
build: { | ||
minify: false | ||
}, | ||
plugins: [sveltekit()] | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import * as path from 'path'; | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
|
||
/** @type {import('vite').UserConfig} */ | ||
const config = { | ||
plugins: [sveltekit()], | ||
server: { | ||
// TODO: required to support ipv6, remove on vite 3 | ||
// https://github.com/vitejs/vite/issues/7075 | ||
host: 'localhost', | ||
fs: { | ||
allow: [path.resolve('../../../src')] | ||
}, | ||
// TODO: remove on vite 3 | ||
// https://github.com/vitejs/vite/pull/8778 | ||
watch: { | ||
// perf, do not watch playwright output dir | ||
ignored: ['**/test-results/**'] | ||
} | ||
} | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import * as path from 'path'; | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
|
||
/** @type {import('vite').UserConfig} */ | ||
const config = { | ||
build: { | ||
minify: false | ||
}, | ||
clearScreen: false, | ||
optimizeDeps: { | ||
// for CI, we need to explicitly prebundle deps, since | ||
// the reload confuses Playwright | ||
include: ['cookie', 'marked'] | ||
}, | ||
plugins: [sveltekit()], | ||
server: { | ||
// TODO: required to support ipv6, remove on vite 3 | ||
// https://github.com/vitejs/vite/issues/7075 | ||
host: 'localhost', | ||
fs: { | ||
allow: [path.resolve('../../../src')] | ||
}, | ||
// TODO: remove on vite 3 | ||
// https://github.com/vitejs/vite/pull/8778 | ||
watch: { | ||
// perf, do not watch playwright output dir | ||
ignored: ['**/test-results/**'] | ||
} | ||
} | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as path from 'path'; | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
|
||
/** @type {import('vite').UserConfig} */ | ||
const config = { | ||
build: { | ||
minify: false | ||
}, | ||
clearScreen: false, | ||
plugins: [sveltekit()], | ||
server: { | ||
// TODO: required to support ipv6, remove on vite 3 | ||
// https://github.com/vitejs/vite/issues/7075 | ||
host: 'localhost', | ||
fs: { | ||
allow: [path.resolve('../../../src')] | ||
}, | ||
// TODO: remove on vite 3 | ||
// https://github.com/vitejs/vite/pull/8778 | ||
watch: { | ||
// perf, do not watch playwright output dir | ||
ignored: ['**/test-results/**'] | ||
} | ||
} | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as path from 'path'; | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
|
||
/** @type {import('vite').UserConfig} */ | ||
const config = { | ||
build: { | ||
minify: false | ||
}, | ||
clearScreen: false, | ||
plugins: [sveltekit()], | ||
server: { | ||
// TODO: required to support ipv6, remove on vite 3 | ||
// https://github.com/vitejs/vite/issues/7075 | ||
host: 'localhost', | ||
fs: { | ||
allow: [path.resolve('../../../src')] | ||
}, | ||
// TODO: remove on vite 3 | ||
// https://github.com/vitejs/vite/pull/8778 | ||
watch: { | ||
// perf, do not watch playwright output dir | ||
ignored: ['**/test-results/**'] | ||
} | ||
} | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as path from 'path'; | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
|
||
/** @type {import('vite').UserConfig} */ | ||
const config = { | ||
build: { | ||
minify: false | ||
}, | ||
clearScreen: false, | ||
plugins: [sveltekit()], | ||
server: { | ||
// TODO: required to support ipv6, remove on vite 3 | ||
// https://github.com/vitejs/vite/issues/7075 | ||
host: 'localhost', | ||
fs: { | ||
allow: [path.resolve('../../../src')] | ||
}, | ||
// TODO: remove on vite 3 | ||
// https://github.com/vitejs/vite/pull/8778 | ||
watch: { | ||
// perf, do not watch playwright output dir | ||
ignored: ['**/test-results/**'] | ||
} | ||
} | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import * as path from 'path'; | ||
import { sveltekit } from '@sveltejs/kit/vite'; | ||
|
||
/** @type {import('vite').UserConfig} */ | ||
const config = { | ||
build: { | ||
minify: false | ||
}, | ||
clearScreen: false, | ||
plugins: [sveltekit()], | ||
server: { | ||
// TODO: required to support ipv6, remove on vite 3 | ||
// https://github.com/vitejs/vite/issues/7075 | ||
host: 'localhost', | ||
fs: { | ||
allow: [path.resolve('../../../src')] | ||
}, | ||
// TODO: remove on vite 3 | ||
// https://github.com/vitejs/vite/pull/8778 | ||
watch: { | ||
// perf, do not watch playwright output dir | ||
ignored: ['**/test-results/**'] | ||
} | ||
} | ||
}; | ||
|
||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.