Skip to content

Commit 2fb19a6

Browse files
committed
chore: drop dist/ output — styles are auto-imported per component
- Remove full CSS bundle (dist/styles/index.css) and fonts copy - Remove dist from package.json files, exports, and clean script - Update README: remove manual CSS import, remove babel-plugin-import section
1 parent 4bfcb6b commit 2fb19a6

14 files changed

Lines changed: 8 additions & 10880 deletions

README.md

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,6 @@ yarn add tiny-ui
6464

6565
```jsx
6666
import { Button, Switch } from 'tiny-ui';
67-
import 'tiny-ui/dist/styles/index.css';
6867

6968
const App = () => (
7069
<>
@@ -74,17 +73,7 @@ const App = () => (
7473
);
7574
```
7675

77-
### On-demand loading
78-
79-
Use [babel-plugin-import](https://github.com/ant-design/babel-plugin-import) to load components and styles on demand:
80-
81-
```json
82-
{
83-
"plugins": [
84-
["import", { "libraryName": "tiny-ui", "style": "css" }]
85-
]
86-
}
87-
```
76+
Styles are automatically imported alongside each component — no separate CSS import needed. Modern bundlers (webpack, Vite, Rollup) will tree-shake unused components and their styles.
8877

8978
## Theming
9079

dist/styles/fonts/iconfont.eot

-61.1 KB
Binary file not shown.

dist/styles/fonts/iconfont.svg

Lines changed: 0 additions & 752 deletions
This file was deleted.

dist/styles/fonts/iconfont.ttf

-61 KB
Binary file not shown.

dist/styles/fonts/iconfont.woff

-49.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)