feat: add Tailwind CSS and update build process
This commit is contained in:
1 parent
ee0235e118
commit
b6058c32ec
5 files changed
+31
-13
No files matched your search
+10
-12
@@ -1,17 +1,15 @@
|
|||||||
{
|
{
|
||||||
"name": "vite-starter",
|
"name": "your-project-name",
|
||||||
"private": true,
|
"version": "1.0.0",
|
||||||
"version": "0.0.0",
|
"description": "",
|
||||||
"type": "module",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"build": "postcss src/styles.css -o dist/styles.css"
|
||||||
"build": "vite build",
|
|
||||||
"preview": "vite preview"
|
|
||||||
},
|
|
||||||
"devDependencies": {
|
|
||||||
"vite": "^5.4.8"
|
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bulma": "^1.0.4"
|
"autoprefixer": "^10.4.7",
|
||||||
}
|
"postcss": "^8.4.14",
|
||||||
|
"tailwindcss": "^3.0.24"
|
||||||
|
},
|
||||||
|
"devDependencies": {}
|
||||||
}
|
}
|
||||||
@@ -0,0 +1,6 @@
|
|||||||
|
module.exports = {
|
||||||
|
plugins: {
|
||||||
|
tailwindcss: {},
|
||||||
|
autoprefixer: {},
|
||||||
|
},
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
@tailwind base;
|
||||||
|
@tailwind components;
|
||||||
|
@tailwind utilities;
|
||||||
@@ -0,0 +1,11 @@
|
|||||||
|
/** @type {import('tailwindcss').Config} */
|
||||||
|
module.exports = {
|
||||||
|
content: [
|
||||||
|
"./src/**/*.{html,js}",
|
||||||
|
"./public/**/*.{html,js}"
|
||||||
|
],
|
||||||
|
theme: {
|
||||||
|
extend: {},
|
||||||
|
},
|
||||||
|
plugins: [],
|
||||||
|
}
|
||||||
@@ -4,7 +4,7 @@
|
|||||||
<meta charset="UTF-8" />
|
<meta charset="UTF-8" />
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<link rel="stylesheet" href="node_modules/bulma/css/bulma.min.css">
|
<link rel="stylesheet" href="node_modules/bulma/css/bulma.min.css">
|
||||||
<link rel="stylesheet" href="style.css">
|
<link rel="stylesheet" href="dist/styles.css">
|
||||||
<title>User Profile - Behind the Desk</title>
|
<title>User Profile - Behind the Desk</title>
|
||||||
<style>
|
<style>
|
||||||
.hover-underline:hover {
|
.hover-underline:hover {
|
||||||
|
|||||||
Reference in new issue
Block a user