Closed will-moore closed 6 years ago
The default JSON output value is wrong in the current version.
Change
"output": "assets/react-toolbox"
to
"output": "src/assets/react-toolbox"
Doing this will allow you to import using
import theme from './assets/react-toolbox/theme'
You could just remove the output key value entirely, and the default import per the README...
output: Path where both Javascript and CSS files will be generated. Aliased as -o. Defaults to src/toolbox.
So you should be able in this case to import with
import theme from './toolbox'
Great, thanks. That fixed it: commit: https://github.com/will-moore/toolbox-test-app/commit/781760bb7e6285cbfdda14f10a5310657660ce1c
Hi, I'm having trouble getting started:
Starting a new project...
Edited package.json adding config exactly as in https://github.com/react-toolbox/react-toolbox-themr#usage
and
Then created theme...
Added to index.js, including:
When I try to
npm start
I seeI pushed everything to https://github.com/will-moore/toolbox-test-app
Many thanks!