diff --git a/examples/with-react-toolbox/README.md b/examples/with-react-toolbox/README.md index e8dad71fe798f..4bc1b0c67ca7d 100644 --- a/examples/with-react-toolbox/README.md +++ b/examples/with-react-toolbox/README.md @@ -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 diff --git a/examples/with-react-toolbox/package.json b/examples/with-react-toolbox/package.json index 5412b3156972d..229a0a7f2e4cf 100644 --- a/examples/with-react-toolbox/package.json +++ b/examples/with-react-toolbox/package.json @@ -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" } } diff --git a/examples/with-react-toolbox/pages/index.js b/examples/with-react-toolbox/pages/index.js index a2b3945220c2e..e432a7915133f 100644 --- a/examples/with-react-toolbox/pages/index.js +++ b/examples/with-react-toolbox/pages/index.js @@ -1,5 +1,5 @@ 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' @@ -7,7 +7,7 @@ import Button from 'react-toolbox/lib/button/Button' export default () => (