Skip to content

Commit f98dacf

Browse files
committed
chore: add sass-embedded and configure SCSS preprocessor
1 parent 1f5f22d commit f98dacf

File tree

5 files changed

+46
-50
lines changed

5 files changed

+46
-50
lines changed

package.json

+1
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
"node-fetch": "^3.3.1",
5353
"postcss": "^8.5.1",
5454
"prettier": "^3.2.5",
55+
"sass-embedded": "^1.83.4",
5556
"tailwindcss": "^3.4.0",
5657
"tsx": "^4.7.0",
5758
"typescript": "^5.3.3",

pnpm-lock.yaml

+10-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tsconfig.json

+27-31
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
{
2-
"compilerOptions": {
3-
"target": "ES2020",
4-
"useDefineForClassFields": true,
5-
"lib": ["ES2020", "DOM", "DOM.Iterable"],
6-
"module": "ESNext",
7-
"skipLibCheck": true,
8-
"esModuleInterop": true,
9-
"moduleResolution": "bundler",
10-
"allowImportingTsExtensions": true,
11-
"resolveJsonModule": true,
12-
"isolatedModules": true,
13-
"noEmit": true,
14-
"jsx": "react-jsx",
15-
"noImplicitAny": false,
2+
"compilerOptions": {
3+
"target": "ES2020",
4+
"useDefineForClassFields": true,
5+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
6+
"module": "ESNext",
7+
"skipLibCheck": true,
8+
"esModuleInterop": true,
9+
"moduleResolution": "bundler",
10+
"allowImportingTsExtensions": true,
11+
"resolveJsonModule": true,
12+
"isolatedModules": true,
13+
"noEmit": true,
14+
"jsx": "react-jsx",
15+
"noImplicitAny": false,
16+
"incremental": false,
1617

17-
/* Linting */
18-
"strict": true,
19-
"noUnusedLocals": true,
20-
"noUnusedParameters": true,
21-
"noFallthroughCasesInSwitch": true,
18+
/* Linting */
19+
"strict": true,
20+
"noUnusedLocals": true,
21+
"noUnusedParameters": true,
22+
"noFallthroughCasesInSwitch": true,
2223

23-
/* Paths */
24-
"baseUrl": ".",
25-
"paths": {
26-
"@/*": ["./src/*"]
27-
}
28-
},
29-
"include": [
30-
"src/**/*.ts",
31-
"src/**/*.tsx",
32-
"scripts/**/*.ts",
33-
"vite.config.ts"
34-
]
24+
/* Paths */
25+
"baseUrl": ".",
26+
"paths": {
27+
"@/*": ["./src/*"]
28+
}
29+
},
30+
"include": ["src/**/*.ts", "src/**/*.tsx", "scripts/**/*.ts", "vite.config.ts"]
3531
}

tsconfig.tsbuildinfo

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
{"root":["./src/types.ts","./src/vite-env.d.ts","./src/hooks/useblogs.ts","./src/hooks/usepost.ts","./src/hooks/usestickytitle.ts","./src/hooks/usetoast.ts","./src/utils.ts","./src/utils/index.ts","./src/app.tsx","./src/themeprovider.tsx","./src/main.tsx","./src/components/codeblock.tsx","./src/components/layout.tsx","./src/components/navigation.tsx","./src/components/sideanchor.tsx","./src/components/themetoggler.tsx","./src/components/toc.tsx","./src/components/ui/button.tsx","./src/components/ui/card.tsx","./src/components/ui/dropdown-menu.tsx","./src/components/ui/loading.tsx","./src/components/ui/navigation-menu.tsx","./src/components/ui/sheet.tsx","./src/components/ui/toast.tsx","./src/components/ui/toaster.tsx","./src/views/bloglist.tsx","./src/views/blogpost.tsx","./src/views/workspace.tsx","./scripts/pick.ts","./vite.config.ts"],"version":"5.7.3"}
1+
{"root":["./src/consts.ts","./src/types.ts","./src/vite-env.d.ts","./src/hooks/useblogs.ts","./src/hooks/usepost.ts","./src/hooks/usestickytitle.ts","./src/hooks/usetoast.ts","./src/utils/index.ts","./src/app.tsx","./src/themeprovider.tsx","./src/main.tsx","./src/components/codeblock.tsx","./src/components/layout.tsx","./src/components/navigation.tsx","./src/components/sideanchor.tsx","./src/components/themetoggler.tsx","./src/components/toc.tsx","./src/components/ui/button.tsx","./src/components/ui/card.tsx","./src/components/ui/dropdown-menu.tsx","./src/components/ui/loading.tsx","./src/components/ui/navigation-menu.tsx","./src/components/ui/sheet.tsx","./src/components/ui/toast.tsx","./src/components/ui/toaster.tsx","./src/views/bloglist.tsx","./src/views/blogpost.tsx","./src/views/workspace.tsx","./scripts/pick.ts","./vite.config.ts"],"version":"5.7.3"}

vite.config.ts

+7
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,11 @@ export default defineConfig({
1212
publicDir: "public",
1313
base: "/blog/",
1414
logLevel: "info",
15+
css: {
16+
preprocessorOptions: {
17+
scss: {
18+
api: "modern-compiler",
19+
},
20+
},
21+
},
1522
});

0 commit comments

Comments
 (0)