-
Notifications
You must be signed in to change notification settings - Fork 185
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
How to integrate Backpack components into an existing project #183
Comments
Hi @Nerogee! Have a look at backpack-react-scripts - it's a fork of Facebook's Create React App with tweaks to the webpack configuration in order to support backpack components out of the box. You can check out the webpack configuration inside (have a look in the dev and prod configs). Essentially we have added in a custom regex to include backpack components in babel-loader as well as sass compilation support. See this guide for more details. Hope this helps! |
Closing due to inactivity - feel free to reopen if you need info! |
Hey @Nerogee I appreciate it's a while since you raised this, so might not be at all relevant, but I've published an experimental package called You can check it out here. Usage is the same as documented on backpack.github.io, except you have to import from subdirectories within the package. eg:
As I said it's experimental for now, and not officially supported by Backpack or Skyscanner, but it might help 🤷 |
This is kinda sad that there are no guides (at least I have found none) that can help in this task. Most links from @matthewdavidson comment do not work at this point. |
This is a question instead of reporting a bug. Since there is less resource I can seek for help, so I put my question here.
I'm trying to integrate backpage into an existing project. But it fails
I think I miss some important step as what it mentions in note. Can anyone advise me how to accommodate for this in my webpack config?
The text was updated successfully, but these errors were encountered: