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
|
// https://astro.build/config
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
output: 'static',
|
output: 'static',
|
||||||
|
build: {
|
||||||
|
inlineStylesheets: 'always',
|
||||||
|
},
|
||||||
vite: {
|
vite: {
|
||||||
plugins: [tailwindcss()],
|
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