feat: add tailwind (lol)
All checks were successful
Build Docker Image / run (pull_request) Successful in 49s

This commit is contained in:
Clement 2024-04-23 21:26:35 +02:00
parent 84e0c57fc9
commit d748e80d3e
2 changed files with 27 additions and 16 deletions

View File

@ -1,21 +1,24 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import node from '@astrojs/node'; import node from '@astrojs/node';
import tailwind from "@astrojs/tailwind";
// https://astro.build/config // https://astro.build/config
export default defineConfig({ export default defineConfig({
// integrations: [tailwind(), test, routing(), version(), buildInfos()], // integrations: [tailwind(), test, routing(), version(), buildInfos()],
compressHTML: true, compressHTML: true,
build: { build: {
assets: 'assets', assets: 'assets',
inlineStylesheets: 'auto' inlineStylesheets: 'auto'
}, },
server: { server: {
host: true, host: true,
port: 3000 port: 3000
}, },
trailingSlash: 'never', trailingSlash: 'never',
output: 'server', output: 'server',
adapter: node({ adapter: node({
mode: 'standalone' mode: 'standalone'
}), }),
}); integrations: [tailwind()]
});

View File

@ -0,0 +1,8 @@
/** @type {import('tailwindcss').Config} */
export default {
content: ['./src/**/*.{astro,html,js,jsx,md,mdx,svelte,ts,tsx,vue}'],
theme: {
extend: {},
},
plugins: [],
}