Skip to content

Commit

Permalink
feat: add antd
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenull committed Mar 8, 2022
1 parent 3877da9 commit 036577d
Show file tree
Hide file tree
Showing 3 changed files with 691 additions and 5 deletions.
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
},
"dependencies": {
"@logseq/libs": "^0.0.1-alpha.34",
"antd": "^4.18.9",
"react": "^17.0.2",
"react-dom": "^17.0.2"
},
Expand All @@ -29,6 +30,7 @@
"postcss": "^8.4.5",
"tailwindcss": "^3.0.15",
"typescript": "^4.4.4",
"vite": "^2.7.2"
"vite": "^2.7.2",
"vite-plugin-importer": "^0.2.5"
}
}
10 changes: 9 additions & 1 deletion vite.config.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,17 @@
import { defineConfig } from 'vite'
import react from '@vitejs/plugin-react'
import usePluginImport from 'vite-plugin-importer'

// https://vitejs.dev/config/
export default defineConfig({
plugins: [react()],
plugins: [
react(),
usePluginImport({
libraryName: "antd",
libraryDirectory: "es",
style: "css",
}),
],
base: './',
build: {
target: "esnext",
Expand Down
Loading

0 comments on commit 036577d

Please sign in to comment.