-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* retire vite.config.js in favour of config.kit.vite - fixes #509 * changeset * message for people with a vite.config.js * add configFile: false * add docs for config.kit.vite * fix ssr config * update user-facing config type
- Loading branch information
Rich Harris
authored
Mar 19, 2021
1 parent
472d1d7
commit ac3669e
Showing
25 changed files
with
147 additions
and
148 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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
--- | ||
'create-svelte': patch | ||
'@sveltejs/kit': patch | ||
--- | ||
|
||
Move Vite config into svelte.config.cjs |
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 |
---|---|---|
@@ -1,8 +1,6 @@ | ||
module.exports = { | ||
kit: { | ||
adapter: '@sveltejs/adapter-netlify', | ||
|
||
// hydrate the <div id="svelte"> element in src/app.html | ||
target: '#svelte' | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,16 @@ | ||
const pkg = require('./package.json'); | ||
|
||
module.exports = { | ||
kit: { | ||
// By default, `npm run build` will create a standard Node app. | ||
// You can create optimized builds for different platforms by | ||
// specifying a different adapter | ||
adapter: '@sveltejs/adapter-node', | ||
|
||
// hydrate the <div id="svelte"> element in src/app.html | ||
target: '#svelte' | ||
target: '#svelte', | ||
vite: { | ||
build: { | ||
minify: false | ||
}, | ||
ssr: { | ||
noExternal: Object.keys(pkg.dependencies || {}) | ||
} | ||
} | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,11 +1,6 @@ | ||
module.exports = { | ||
kit: { | ||
// By default, `npm run build` will create a standard Node app. | ||
// You can create optimized builds for different platforms by | ||
// specifying a different adapter | ||
adapter: '@sveltejs/adapter-node', | ||
|
||
// hydrate the <div id="svelte"> element in src/app.html | ||
target: '#svelte' | ||
} | ||
}; |
This file was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
Oops, something went wrong.