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:
1 parent
c48febe255
commit
66d6e7ac7b
1 file changed
+3
-8
+3
-8
@@ -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