Skip to content

Commit

Permalink
Update with-react-toolbox example to use /public (vercel#9099)
Browse files Browse the repository at this point in the history
  • Loading branch information
ismamz authored and timneutkens committed Oct 16, 2019
1 parent 02e75cf commit ff5d5c5
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion examples/with-react-toolbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ yarn
yarn dev
```

Notice that `yarn toolbox` (or `npm run toolbox`) should be rerun every time the `"reactToolbox"` configuration in `package.json` is changed, in order to update `static/theme.js` and `static/theme.css`. The `"reactToolbox"` configuration includes styling, and the list of react-toolbox components to include.
Notice that `yarn toolbox` (or `npm run toolbox`) should be rerun every time the `"reactToolbox"` configuration in `package.json` is changed, in order to update `/theme.js` and `public/theme.css`. The `"reactToolbox"` configuration includes styling, and the list of react-toolbox components to include.

## The idea behind the example

Expand Down
3 changes: 2 additions & 1 deletion examples/with-react-toolbox/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"color-primary-contrast": "var(--color-dark-contrast)",
"color-accent-contrast": "var(--color-dark-contrast)"
},
"output": "static"
"output": "public",
"javascript": "./theme.js"
}
}
4 changes: 2 additions & 2 deletions examples/with-react-toolbox/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import ThemeProvider from 'react-toolbox/lib/ThemeProvider'
import theme from '../static/theme'
import theme from '../theme'
import Head from 'next/head'

import Button from 'react-toolbox/lib/button/Button'

export default () => (
<div>
<Head>
<link href='/static/theme.css' rel='stylesheet' />
<link href='/theme.css' rel='stylesheet' />
</Head>
<ThemeProvider theme={theme}>
<Button raised primary>
Expand Down
File renamed without changes.

0 comments on commit ff5d5c5

Please sign in to comment.