Comments (4)
Also having issues with this. I need to modify the input styling (field.css). But because it's a global component that's imported into other components (addressForm.js etc) the components that depend on it also need copying across to the "child" theme or import paths altered in some of the components to point to the "parent" theme, so it severs the chain.
With this in mind you're probably best just copying copying all the components across before you start a theme or just working on veniaUi directly in the first place... or am I completely missing something obvs? ¯_(ツ)_/¯
I wish Magento would bring out some best bloody practises using their PWA setup. Always such limited documentation from those guys!!!
from fallback-studio.
Kinda short on time at the moment but you can take a look at https://github.com/Jordaneisenburger/fallback-studio/blob/master/src/example-company/example-shop/componentOverrideMapping.js
from fallback-studio.
@Jordaneisenburger Sorry, I'm a bit confused.. please can you explain what the componentOverrideMapping.js does or how to utilise it when you have time?
If I need to make a change to a global component such as field.js
, I need to copy it over to the theme. There are a few other components that import the component:
Do I need to copy these over to the theme so their import paths point to the correct field.js
component?
from fallback-studio.
It basically replaces the left string with right string whenever it's used. So if you wanna overwrite field.js you can replace it with your own in componentOverrideMapping.js
from fallback-studio.
Related Issues (14)
- Error when copying ProductFullDetail component to own package HOT 6
- setup and run fallback-studio as a standard user HOT 2
- Facing Issues regarding various files name in fresh install. HOT 1
- Make fallback studio work with latest pwa-studio HOT 3
- Error running "yarn run watch:example-shop" on new install HOT 1
- Error after fresh install
- ProductImage must have a sub selection HOT 2
- PWA Studio V5 HOT 1
- ERROR in ./FETCH_ROOT_COMPONENT HOT 4
- Unable to update logo image HOT 2
- When the sample storefront component footer is modified, the page is not loaded. HOT 4
- Missing documentation for publishing to production environment HOT 1
- Missing documentation for publishing to production environment, thank you
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 fallback-studio.