Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 9108e4b

Browse files
committedApr 4, 2024
Refactored boilerplate
1 parent 9b6c3da commit 9108e4b

File tree

4 files changed

+10
-6
lines changed

4 files changed

+10
-6
lines changed
 

‎jsconfig.json

+6-2
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
{
22
"compilerOptions": {
3+
"baseUrl": ".",
34
"paths": {
5+
"@styles/*": [
6+
"styles/*"
7+
],
48
"@components/*": [
5-
"./*"
6-
]
9+
"components/*"
10+
],
711
}
812
}
913
}

‎pages/_app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import "@components/styles/globals.css";
1+
import "@styles/globals.css";
22

33
export default function App({ Component, pageProps }) {
44
return <Component {...pageProps} />;

‎pages/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@ import { Inter } from "next/font/google";
33
const inter = Inter({ subsets: ["latin"] });
44

55
export default function Home() {
6-
return <p>Test</p>;
6+
return <p className="text-red-500">Test</p>;
77
}

‎tailwind.config.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const { fontFamily } = require("tailwindcss/defaultTheme");
1+
import { fontFamily } from "tailwindcss/defaultTheme";
22

3-
module.exports = {
3+
export default {
44
content: [
55
"./pages/**/*.{js,ts,jsx,tsx}",
66
"./components/**/*.{js,ts,jsx,tsx}",

0 commit comments

Comments
 (0)
Please sign in to comment.