Skip to content

Commit

Permalink
docs(theming) list semantic-ui-less in dependencies
Browse files Browse the repository at this point in the history
With current documentation, compile will fail:

```
Failed to compile.
src/index.tsx
  Line 6:1:  'semantic-ui-less' should be listed in the project's dependencies, not devDependencies  import/no-extraneous-dependencies
```
  • Loading branch information
natanlao authored Oct 14, 2021
1 parent 66591fb commit e54f2fa
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions docs/src/pages/Theming.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,13 @@ yarn remove semantic-ui semantic-ui-css
Create React App does not support LESS out of the box; we propose to use [`@craco/craco`](https://www.npmjs.com/package/@craco/craco) to add its support and avoid `eject`. You have to install required packages:

```bash
npm install @craco/craco @semantic-ui-react/craco-less semantic-ui-less --save-dev
npm install @craco/craco @semantic-ui-react/craco-less --save-dev
npm install semantic-ui-less --save
```

```bash
yarn add @craco/craco @semantic-ui-react/craco-less semantic-ui-less --dev
yarn add @craco/craco @semantic-ui-react/craco-less --dev
yarn add semantic-ui-less
```

And then update your `package.json` and create `craco.config.js`:
Expand Down

0 comments on commit e54f2fa

Please sign in to comment.