Making it work for ESP32

This commit is contained in:
Djuri 2023-11-17 11:09:06 +01:00
parent 287d04bc97
commit ac33a596c7
8 changed files with 80 additions and 19 deletions

View file

@ -8,7 +8,13 @@ const config = {
preprocess: vitePreprocess({
}),
build: {
rollupOptions: {
output: {
assetFilenames: '[hash]'
}
}
},
kit: {
// adapter-auto only supports some environments, see https://kit.svelte.dev/docs/adapter-auto for a list.
// If your environment is not supported or you settled on a specific environment, switch out the adapter.
@ -16,12 +22,14 @@ const config = {
adapter: adapter({
// default options are shown. On some platforms
// these options are set automatically — see below
pages: 'build',
assets: 'build',
fallback: undefined,
pages: 'dist',
assets: 'dist',
fallback: "bundle.html",
precompress: false,
strict: true
})
}),
appDir: "build",
// inlineStyleThreshold: 9999999999
}
};