Skip to content

Commit

Permalink
feat: conventions of directory, dynamic import for antd
Browse files Browse the repository at this point in the history
  • Loading branch information
campcc committed Sep 2, 2020
1 parent 95c9572 commit b4b428b
Show file tree
Hide file tree
Showing 15 changed files with 524 additions and 210 deletions.
12 changes: 11 additions & 1 deletion .babelrc
Original file line number Diff line number Diff line change
@@ -1,3 +1,13 @@
{
"presets": ["@babel/preset-react"]
"presets": ["@babel/preset-react"],
"plugins": [
[
"import",
{
"libraryName": "antd",
"libraryDirectory": "es",
"style": "css" // `style: true` 会加载 less 文件
}
]
]
}
2 changes: 1 addition & 1 deletion .prettierrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"singleQuote": true,
"trailingComma": "all",
"printWidth": 100,
"printWidth": 80,
"proseWrap": "never",
"overrides": [
{
Expand Down
Loading

0 comments on commit b4b428b

Please sign in to comment.