Comments (4)
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!
from backpack.
Closing due to inactivity - feel free to reopen if you need info!
from backpack.
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 backpack-transpiled
which contains all the backpack React components, and uses transpiled js and CSS.
You can check it out here.
https://www.npmjs.com/package/backpack-transpiled
Usage is the same as documented on backpack.github.io, except you have to import from subdirectories within the package. eg:
import BpkButton from 'backpack-transpiled/bpk-component-button';
As I said it's experimental for now, and not officially supported by Backpack or Skyscanner, but it might help 🤷
from backpack.
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.
There is one webpack config now, but personally I have no idea what part of it should I merge to the nextjs one we are using.
from backpack.
Related Issues (20)
- An in-range update of husky is breaking the build 🚨 HOT 1
- An in-range update of react-slider is breaking the build 🚨
- An in-range update of eslint_d is breaking the build 🚨 HOT 1
- An in-range update of babel7 is breaking the build 🚨 HOT 1
- An in-range update of yaml is breaking the build 🚨 HOT 1
- [bpk-component-datepicker] /bpk-component-calendar/src/BpkCalendarContainer.js: Support for the experimental syntax 'classProperties' isn't currently enabled (102:21) HOT 1
- Support projects not using scss HOT 2
- [bpk-component-horizontal-nav]/[bpk-mixins] using incompatible shadow styles for React Native HOT 3
- Test HOT 1
- Split of React Native and React components? HOT 3
- Start using react 17 HOT 3
- No bpk-component-switch in the readme? HOT 2
- Error while installing calendar component HOT 1
- Add React.forwardRef to enable ref in BpkButton?
- [feature request] Add holiday highlight in bpk-calendar HOT 2
- problem with typing in BpkButton.js HOT 17
- SyntaxError: Unexpected token 'export' HOT 2
- Mini StackBlitz (or similar) demo request HOT 6
- Extract the in Web UI price of individual fligths when there's 1 or multiple stops HOT 2
- "Sass Loader Error: <Brief Description>" HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from backpack.