fix: Force inline stylesheets for better CSS delivery
- Set build.inlineStylesheets to 'always' - CSS embedded in HTML instead of external files - More reliable for static hosting - Fixes styling not loading issue
This commit is contained in:
@@ -6,15 +6,10 @@ import tailwindcss from '@tailwindcss/vite';
|
||||
// https://astro.build/config
|
||||
export default defineConfig({
|
||||
output: 'static',
|
||||
build: {
|
||||
inlineStylesheets: 'always',
|
||||
},
|
||||
vite: {
|
||||
plugins: [tailwindcss()],
|
||||
server: {
|
||||
host: '0.0.0.0',
|
||||
allowedHosts: true,
|
||||
},
|
||||
preview: {
|
||||
host: '0.0.0.0',
|
||||
allowedHosts: true,
|
||||
},
|
||||
},
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user