Properly setup tailwind
This commit is contained in:
parent
fb777c4bc9
commit
8b1c18ae8d
2
.gitignore
vendored
2
.gitignore
vendored
@ -34,3 +34,5 @@ build/
|
||||
|
||||
### css compiled by tailwind ###
|
||||
src/main/resources/static/main.css
|
||||
|
||||
node_modules/
|
||||
|
@ -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": "",
|
6
pom.xml
6
pom.xml
@ -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>
|
||||
|
1
src/main/resources/frontend/.gitignore
vendored
1
src/main/resources/frontend/.gitignore
vendored
@ -1 +0,0 @@
|
||||
node_modules
|
@ -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>
|
||||
|
@ -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: {
|
Loading…
Reference in New Issue
Block a user