Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

환경설정 - Vanilla Extract 설정 추가 #4

Merged
merged 3 commits into from
Aug 22, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions apps/web/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* eslint-disable @typescript-eslint/no-var-requires */

const { createVanillaExtractPlugin } = require("@vanilla-extract/next-plugin");
const { PHASE_DEVELOPMENT_SERVER } = require("next/constants");

/** @type {import('next').NextConfig} */
module.exports = (phase) => {
const withVanillaExtract = createVanillaExtractPlugin({
identifiers: phase === PHASE_DEVELOPMENT_SERVER ? "short" : "debug",

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

short, debug 순서 잊지않고 바꾸기

});

const nextConfig = {
reactStrictMode: true,
};

return withVanillaExtract(nextConfig);
};
6 changes: 0 additions & 6 deletions apps/web/next.config.mjs

This file was deleted.

8 changes: 7 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev --turbo",
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
Expand All @@ -19,6 +19,12 @@
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@vanilla-extract/css": "^1.15.3",
"@vanilla-extract/css-utils": "^0.1.4",
"@vanilla-extract/dynamic": "^2.1.1",
"@vanilla-extract/next-plugin": "^2.4.3",
"@vanilla-extract/recipes": "^0.5.3",
"@vanilla-extract/sprinkles": "^1.6.2",
"eslint": "^8",
"eslint-config-next": "14.2.5",
"typescript": "^5"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
},
"include": [
"next-env.d.ts",
"next.config.mjs",
"next.config.js",
"lint-staged.config.cjs",
"**/*.ts",
"**/*.tsx",
Expand Down
Loading
Loading