Skip to content

Commit 114031d

Browse files
authored
Merge pull request #6 from Team-INSERT/feat/stylesheet-change
chore(dependency): vanilla extract로 의존성 변경
2 parents 225bef6 + 4b1a290 commit 114031d

File tree

7 files changed

+659
-310
lines changed

7 files changed

+659
-310
lines changed

.babelrc.js

Lines changed: 0 additions & 18 deletions
This file was deleted.

.eslintignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
jest.config.js
22
jest.setup.js
3-
next.config.js
4-
commitlint.config.js
3+
commitlint.config.js
4+
.eslintrc.js
5+
next.config.mjs

app/global-error.jsx

Lines changed: 0 additions & 19 deletions
This file was deleted.

app/page.tsx

Lines changed: 5 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -1,95 +1,7 @@
1-
import Image from "next/image";
2-
import styles from "./page.module.css";
1+
import React from "react";
32

4-
export default function Home() {
5-
return (
6-
<main className={styles.main}>
7-
<div className={styles.description}>
8-
<p>
9-
Get started by editing&nbsp;
10-
<code className={styles.code}>app/page.tsx</code>
11-
</p>
12-
<div>
13-
<a
14-
href="https://vercel.com?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
15-
target="_blank"
16-
rel="noopener noreferrer"
17-
>
18-
By{" "}
19-
<Image
20-
src="/vercel.svg"
21-
alt="Vercel Logo"
22-
className={styles.vercelLogo}
23-
width={100}
24-
height={24}
25-
priority
26-
/>
27-
</a>
28-
</div>
29-
</div>
3+
const Home = () => {
4+
return <div />;
5+
};
306

31-
<div className={styles.center}>
32-
<Image
33-
className={styles.logo}
34-
src="/next.svg"
35-
alt="Next.js Logo"
36-
width={180}
37-
height={37}
38-
priority
39-
/>
40-
</div>
41-
42-
<div className={styles.grid}>
43-
<a
44-
href="https://nextjs.org/docs?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
45-
className={styles.card}
46-
target="_blank"
47-
rel="noopener noreferrer"
48-
>
49-
<h2>
50-
Docs <span>-&gt;</span>
51-
</h2>
52-
<p>Find in-depth information about Next.js features and API.</p>
53-
</a>
54-
55-
<a
56-
href="https://nextjs.org/learn?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
57-
className={styles.card}
58-
target="_blank"
59-
rel="noopener noreferrer"
60-
>
61-
<h2>
62-
Learn <span>-&gt;</span>
63-
</h2>
64-
<p>Learn about Next.js in an interactive course with&nbsp;quizzes!</p>
65-
</a>
66-
67-
<a
68-
href="https://vercel.com/templates?framework=next.js&utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
69-
className={styles.card}
70-
target="_blank"
71-
rel="noopener noreferrer"
72-
>
73-
<h2>
74-
Templates <span>-&gt;</span>
75-
</h2>
76-
<p>Explore starter templates for Next.js.</p>
77-
</a>
78-
79-
<a
80-
href="https://vercel.com/new?utm_source=create-next-app&utm_medium=appdir-template&utm_campaign=create-next-app"
81-
className={styles.card}
82-
target="_blank"
83-
rel="noopener noreferrer"
84-
>
85-
<h2>
86-
Deploy <span>-&gt;</span>
87-
</h2>
88-
<p>
89-
Instantly deploy your Next.js site to a shareable URL with Vercel.
90-
</p>
91-
</a>
92-
</div>
93-
</main>
94-
);
95-
}
7+
export default Home;

next.config.mjs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
import { withSentryConfig } from "@sentry/nextjs";
2-
import stylexPlugin from "@stylexjs/nextjs-plugin";
2+
import { createVanillaExtractPlugin } from "@vanilla-extract/next-plugin";
3+
4+
const withVanillaExtract = createVanillaExtractPlugin({
5+
identifiers: ({ hash }) => `bumawiki_${hash}`,
6+
});
37

48
/** @type {import('next').NextConfig} */
5-
const nextConfig = {
9+
const nextConfig = withVanillaExtract({
610
swcMinify: true,
711
images: {
812
domains: [],
913
},
10-
};
14+
});
1115

1216
export default withSentryConfig(
1317
nextConfig,

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,11 @@
1212
},
1313
"dependencies": {
1414
"@sentry/nextjs": "^7.104.0",
15-
"@stylexjs/babel-plugin": "^0.5.1",
16-
"@stylexjs/nextjs-plugin": "^0.5.1",
17-
"@stylexjs/stylex": "^0.5.1",
1815
"@tanstack/react-query": "^5.24.6",
1916
"@types/react-beautiful-dnd": "^13.1.8",
2017
"@typescript-eslint/eslint-plugin": "^7.1.0",
2118
"@typescript-eslint/parser": "^7.1.0",
19+
"@vanilla-extract/css": "^1.14.1",
2220
"autoprefixer": "^10.4.18",
2321
"babel-loader": "^9.1.3",
2422
"babel-plugin-styled-components": "^2.1.4",
@@ -38,9 +36,11 @@
3836
"react-dom": "^18"
3937
},
4038
"devDependencies": {
39+
"@stylexjs/babel-plugin": "^0.5.1",
4140
"@types/node": "^20",
4241
"@types/react": "^18",
4342
"@types/react-dom": "^18",
43+
"@vanilla-extract/next-plugin": "^2.3.6",
4444
"eslint": "^8",
4545
"eslint-config-next": "14.1.1",
4646
"husky": "^9.0.11",

0 commit comments

Comments
 (0)