Skip to content

Commit

Permalink
Merge pull request #4 from f-lab-edu/feature/3-style-library-setting
Browse files Browse the repository at this point in the history
환경설정 - Vanilla Extract 설정 추가
  • Loading branch information
ag502 authored Aug 22, 2024
2 parents 551c1cd + 13f3bf4 commit 83d2ae4
Show file tree
Hide file tree
Showing 5 changed files with 1,313 additions and 566 deletions.
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 ? "debug" : "short",
});

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

0 comments on commit 83d2ae4

Please sign in to comment.