Fixed broken css build
This commit is contained in:
1 parent
87a4a1949b
commit
328945fbdc
7 files changed
+12
-57
No files matched your search
+1
-28
@@ -4,34 +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" />
|
||||||
<title>Behind the Desk</title>
|
<title>Behind the Desk</title>
|
||||||
<script src="https://cdn.tailwindcss.com"></script>
|
<link href="/src/styles.css" rel="stylesheet">
|
||||||
<script>
|
|
||||||
tailwind.config = {
|
|
||||||
theme: {
|
|
||||||
extend: {
|
|
||||||
colors: {
|
|
||||||
'primary': '#38315f',
|
|
||||||
'primary-dark': '#2c264a',
|
|
||||||
'bg-light': '#f8f9fa',
|
|
||||||
'text-default': '#343a40',
|
|
||||||
'text-title': '#212529',
|
|
||||||
'text-muted': '#6c757d',
|
|
||||||
'border-light': '#dee2e6',
|
|
||||||
'link-hover': '#ff6600',
|
|
||||||
'rules-bg': '#eef6f6', // Example color, adjust as needed
|
|
||||||
'navbar-bg': '#e5fa70',
|
|
||||||
'navbar-border': '#cddb60'
|
|
||||||
},
|
|
||||||
spacing: {
|
|
||||||
'navbar-height': '3.25rem' // 52px
|
|
||||||
}
|
|
||||||
},
|
|
||||||
fontFamily: {
|
|
||||||
'sans': ['-apple-system', 'BlinkMacSystemFont', '"Segoe UI"', 'Roboto', 'Helvetica', 'Arial', 'sans-serif', '"Apple Color Emoji"', '"Segoe UI Emoji"', '"Segoe UI Symbol"']
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</script>
|
|
||||||
</head>
|
</head>
|
||||||
<body class="font-sans text-text-default pt-navbar-height">
|
<body class="font-sans text-text-default pt-navbar-height">
|
||||||
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
|
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
|
||||||
|
|||||||
+1
-1
@@ -3,7 +3,7 @@
|
|||||||
<head>
|
<head>
|
||||||
<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 href="/dist/output.css" rel="stylesheet">
|
<link href="/src/styles.css" rel="stylesheet">
|
||||||
<title>Login / Signup - Behind the Desk</title>
|
<title>Login / Signup - Behind the Desk</title>
|
||||||
</head>
|
</head>
|
||||||
<body class="font-sans text-text-default pt-navbar-height">
|
<body class="font-sans text-text-default pt-navbar-height">
|
||||||
|
|||||||
+7
-5
@@ -5,14 +5,16 @@
|
|||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
"build": "vite build && npx tailwindcss -i ./src/styles.css -o ./dist/output.css --minify"
|
"build": "vite build",
|
||||||
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
"author": "",
|
"author": "",
|
||||||
"license": "ISC",
|
"license": "ISC",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^10.4.13",
|
"autoprefixer": "^10.4.19",
|
||||||
"postcss": "^8.4.19",
|
"postcss": "^8.4.23",
|
||||||
"tailwindcss": "^3.2.4",
|
"tailwindcss": "^3.4.1",
|
||||||
"vite": "^4.0.0"
|
"vite": "^4.4.9",
|
||||||
|
"vite-plugin-tailwindcss": "^1.8.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
+1
-1
@@ -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" />
|
||||||
<title>Post - Behind the Desk</title>
|
<title>Post - Behind the Desk</title>
|
||||||
<link href="/dist/output.css" rel="stylesheet">
|
<link href="/src/styles.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body class="font-sans text-text-default pt-navbar-height">
|
<body class="font-sans text-text-default pt-navbar-height">
|
||||||
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
|
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
|
||||||
|
|||||||
+1
-1
@@ -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" />
|
||||||
<title>Submit - Behind the Desk</title>
|
<title>Submit - Behind the Desk</title>
|
||||||
<link href="/dist/output.css" rel="stylesheet">
|
<link href="/src/styles.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body class="font-sans text-text-default pt-navbar-height">
|
<body class="font-sans text-text-default pt-navbar-height">
|
||||||
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
|
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
|
||||||
|
|||||||
@@ -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" />
|
||||||
<title>User Profile - Behind the Desk</title>
|
<title>User Profile - Behind the Desk</title>
|
||||||
<link href="/dist/output.css" rel="stylesheet">
|
<link href="/src/styles.css" rel="stylesheet">
|
||||||
</head>
|
</head>
|
||||||
<body class="font-sans text-text-default pt-navbar-height">
|
<body class="font-sans text-text-default pt-navbar-height">
|
||||||
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
|
<nav class="fixed top-0 left-0 right-0 bg-navbar-bg border-b border-navbar-border z-10" role="navigation" aria-label="main navigation">
|
||||||
|
|||||||
@@ -1,20 +0,0 @@
|
|||||||
import { defineConfig } from 'vite';
|
|
||||||
|
|
||||||
export default defineConfig({
|
|
||||||
server: {
|
|
||||||
port: 5173,
|
|
||||||
host: 'localhost',
|
|
||||||
},
|
|
||||||
build: {
|
|
||||||
rollupOptions: {
|
|
||||||
output: {
|
|
||||||
assetFileNames: (assetInfo) => {
|
|
||||||
if (assetInfo.name === 'styles.css') {
|
|
||||||
return 'output.css';
|
|
||||||
}
|
|
||||||
return assetInfo.name;
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
});
|
|
||||||
Reference in new issue
Block a user