littlefs/astro.config.mjs

22 lines
No EOL
767 B
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { defineConfig } from 'astro/config';
import tailwind from '@astrojs/tailwind';
import playformCompress from '@playform/compress';
import compressor from 'astro-compressor';
import Sonda from 'sonda/astro';
import preact from '@astrojs/preact';
// https://astro.build/config
export default defineConfig({
vite: {
build: {
// Source maps go on the device's LittleFS otherwise — pure debug data the
// browser only fetches if devtools is open. Each .map adds ~30–300 KB to
// the flash image. Keep production builds map-free; if you need a map for
// debugging a specific build, flip to true temporarily.
sourcemap: false
}
},
integrations: [tailwind(), playformCompress(), compressor(), preact()],//Sonda()
});