Skip to content

Commit

Permalink
fix: 样式路径修复
Browse files Browse the repository at this point in the history
  • Loading branch information
fikyair committed Nov 23, 2021
1 parent 9a2fe07 commit 3a11482
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ yarn add chocolate-ui
```javascript
// 加载样式
import 'chocolate-ui/dist/styles/index.css'
import "chocolate-ui/dist/components/index.css";

// 引入组件
import { Button } from 'chocolate-ui'
Expand Down
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -122,10 +122,9 @@
"start": "npm run storybook",
"lint": "eslint --ext js,ts,tsx src --max-warnings 5",
"clean": "rimraf ./dist",
"build": "npm run clean && npm run build-ts && npm run build:css && npm run build-css",
"build": "npm run clean && npm run build-ts && npm run build:css",
"build:css": "cd gulp-config && gulp",
"build-ts": "tsc -p tsconfig.build.json",
"build-css": "node-sass ./src/styles/index.scss ./dist/index.css",
"test": "cross-env BABEL_ENV=test jest --config jest.config.js",
"test:update": "yarn test -u",
"coverage": "yarn test --coverage",
Expand Down
2 changes: 1 addition & 1 deletion src/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ yarn add chocolate-ui
1、引入

`// 加载样式
import 'chocolate-ui/dist/index.css'`
import "chocolate-ui/dist/components/index.css";

`// 引入组件
import { Button } from 'chocolate-ui'`
Expand Down

0 comments on commit 3a11482

Please sign in to comment.