Properly setup tailwind

This commit is contained in:
Araozu 2024-03-11 14:47:47 -05:00
parent fb777c4bc9
commit 8b1c18ae8d
8 changed files with 13 additions and 6 deletions

2
.gitignore vendored
View File

@ -34,3 +34,5 @@ build/
### css compiled by tailwind ###
src/main/resources/static/main.css
node_modules/

View File

@ -4,8 +4,8 @@
"description": "",
"main": "index.js",
"scripts": {
"dev": "tailwindcss -i ./main.css -o ../static/main.css --watch",
"build": "tailwindcss -i ./main.css -o ../static/main.css --minify"
"dev": "tailwindcss -i ./main.css -o ./src/main/resources/static/main.css --watch",
"build": "tailwindcss -i ./main.css -o ./src/main/resources/static/main.css --minify"
},
"keywords": [],
"author": "",

View File

@ -17,6 +17,12 @@
<java.version>21</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-actuator</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-jpa</artifactId>

View File

@ -1 +0,0 @@
node_modules

View File

@ -19,7 +19,7 @@
<body>
<h1 class="font-black text-4xl p-4 m-4 border-2 border-[black] rounded-md bg-c-surface-variant text-c-on-surface-variant">
Javaaaaaa!!!!!
Java forever and ever
</h1>
</body>

View File

@ -1,8 +1,8 @@
/** @type {import('tailwindcss').Config} */
module.exports = {
content: [
"../templates/**/*.{html,js}",
"../static/**/*.{html,js}",
"./src/main/resources/templates/**/*.{html,js}",
"./src/main/resources/static/**/*.{html,js}",
],
theme: {
extend: {