Skip to content

Commit 23d2870

Browse files
Merge pull request #69 from Sybit-Education/fix/tailwind-production
Fix tailwind in production builds
2 parents 5b432e1 + 4e32865 commit 23d2870

File tree

5 files changed

+45
-6
lines changed

5 files changed

+45
-6
lines changed

package-lock.json

Lines changed: 37 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,15 @@
4141
"@types/jasmine": "~5.1.4",
4242
"@types/node": "^22.0.0",
4343
"angular-eslint": "18.1.0",
44+
"autoprefixer": "^10.4.19",
4445
"eslint": "^9.6.0",
4546
"jasmine-core": "~5.1.0",
4647
"karma": "~6.4.0",
4748
"karma-chrome-launcher": "~3.2.0",
4849
"karma-coverage": "~2.2.0",
4950
"karma-jasmine": "~5.1.0",
5051
"karma-jasmine-html-reporter": "~2.1.0",
52+
"postcss": "^8.4.40",
5153
"tailwindcss": "^3.4.7",
5254
"typescript": "~5.5.4",
5355
"typescript-eslint": "8.0.0-alpha.38"

src/index.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
<link rel="icon" type="image/x-icon" href="/favicon.ico">
99
<link rel="manifest" href="manifest.webmanifest">
1010
<meta name="theme-color" content="#6bc4f6">
11-
<script src="https://cdn.tailwindcss.com"></script>
1211
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.5.0/font/bootstrap-icons.css">
1312
</head>
1413
<body>

src/styles.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@
22

33
/* Importing Bootstrap SCSS file. */
44
@import 'bootstrap/scss/bootstrap';
5+
@tailwind base;
6+
@tailwind components;
7+
@tailwind utilities;
58

69
:root {
710
--lightBlue: #6bc4f6;

tailwind.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
/** @type {import('tailwindcss').Config} */
22
module.exports = {
3-
content: [],
3+
content: [
4+
"./src/**/*.{html,ts}",
5+
],
46
theme: {
57
extend: {},
68
},

0 commit comments

Comments
 (0)