-
Notifications
You must be signed in to change notification settings - Fork 331
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
json files do not get copied over in build-react-component #407
Comments
There's a |
Nice, that did the trick! Thanks @insin. I kept searching for
it said
Maybe adding some more examples would help other people. |
Add headings for feature toggles so they're easier to find Mention JSON files in --copy-files docs #407 [ci skip]
Hopefully this is a little easier to find now |
Awesome, thanks for the quick update! |
Add headings for feature toggles so they're easier to find Mention JSON files in --copy-files docs #407 [ci skip]
This issue is a:
I built a component using
nwb new react-component my-component
. In a few places insrc
I have a few.json
files, which I can import withimport asdf from './asdf.json'
and it works just fine when running the demo withyarn start
.However, when I go to build the component with
yarn build
the.json
files are missing from thees
andlib
folders, so the files fail to import when used elsewhere.The workaround I found for now is a somewhat messy bash oneliner, which I then added to
package.json
as apostbuild
so it gets run automatically after the build.It would be awesome if I didn't have to do this. Is there a config I missed somewhere, or is this a bug?
The text was updated successfully, but these errors were encountered: