Skip to content

Commit dc4a8a1

Browse files
committed
ad
1 parent 3fa7e24 commit dc4a8a1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+16213
-2565
lines changed

components.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"$schema": "https://ui.shadcn.com/schema.json",
3+
"style": "new-york",
4+
"rsc": false,
5+
"tsx": true,
6+
"tailwind": {
7+
"config": "",
8+
"css": "src/styles/globals.css",
9+
"baseColor": "neutral",
10+
"cssVariables": true,
11+
"prefix": ""
12+
},
13+
"aliases": {
14+
"components": "@/components",
15+
"utils": "@/lib/utils",
16+
"ui": "@/components/ui",
17+
"lib": "@/lib",
18+
"hooks": "@/hooks"
19+
},
20+
"iconLibrary": "lucide"
21+
}

esbuild.config.mjs

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
import esbuild from "esbuild";
22
import process from "process";
33
import { builtinModules } from 'node:module';
4-
4+
import postcss from 'esbuild-postcss'
5+
import tailwindcss from 'tailwindcss'
6+
import autoprefixer from 'autoprefixer'
57
const banner =
6-
`/*
8+
`/*
79
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
810
if you want to view the source, please visit the github repository of this plugin
911
*/
@@ -17,6 +19,7 @@ const context = await esbuild.context({
1719
},
1820
entryPoints: ["src/main.ts"],
1921
bundle: true,
22+
conditions: ['style', 'module', 'import', 'default'],
2023
external: [
2124
"obsidian",
2225
"electron",
@@ -37,6 +40,13 @@ const context = await esbuild.context({
3740
logLevel: "info",
3841
sourcemap: prod ? false : "inline",
3942
treeShaking: true,
43+
plugins: [
44+
postcss({
45+
// 如果你有PostCSS配置文件(postcss.config.js),它会自动读取
46+
// 或者你可以在这里指定插件
47+
plugins: [tailwindcss, autoprefixer]
48+
})
49+
],
4050
outfile: "main.js",
4151
minify: prod,
4252
});

main.css

Lines changed: 461 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)