perf: precompress and cache assets ()

* perf: precompress and cache assets

* fix cache header

* use startswith

---------

Co-authored-by: mertalev <101130780+mertalev@users.noreply.github.com>
This commit is contained in:
Ben McCann 2024-03-08 18:15:38 -08:00 committed by GitHub
parent 4fdb0835c9
commit ba55e867e0
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 77 additions and 7 deletions

View file

@ -6,13 +6,8 @@ const config = {
preprocess: vitePreprocess(),
kit: {
adapter: adapter({
// default options are shown. On some platforms
// these options are set automatically — see below
pages: 'build',
assets: 'build',
fallback: 'index.html',
precompress: false,
strict: true,
precompress: true,
}),
alias: {
$lib: 'src/lib',