Skip to content

Commit

Permalink
Merge pull request #855 from oceanbase/dengfuping-dev
Browse files Browse the repository at this point in the history
fix(design): reset.css should build to dist + CodeSandbox build error
  • Loading branch information
dengfuping authored Nov 25, 2024
2 parents 920b3ec + 9a05dee commit bc42f9b
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 21 deletions.
3 changes: 1 addition & 2 deletions packages/design/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
"LICENSE"
],
"scripts": {
"build": "father build",
"postbuild": "cp src/style/reset.css dist/"
"build": "father build && cp src/style/reset.css dist/"
},
"dependencies": {
"@ant-design/cssinjs": "^1.22.0",
Expand Down
16 changes: 16 additions & 0 deletions packages/design/src/global.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@import 'antd/dist/reset.css';

pre,
code,
kbd,
samp {
font-family: Consolas, Monaco, 'Andale Mono', 'Ubuntu Mono', monospace;
}

* {
scrollbar-color: #e2e8f3 transparent;
}

.rc-virtual-list-scrollbar-thumb {
background: #e2e8f3 !important;
}
2 changes: 1 addition & 1 deletion packages/design/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import './reset.css';
import './global.css';

export * from 'antd';
export { version } from '../package.json';
Expand Down
18 changes: 0 additions & 18 deletions packages/design/src/reset.css

This file was deleted.

0 comments on commit bc42f9b

Please sign in to comment.