Created
March 24, 2021 16:58
-
-
Save Frodigo/c38869b7f8cdbbd99a8b83b62e30c722 to your computer and use it in GitHub Desktop.
PWA Studio extending Storefront example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ yarn create @magento/pwa | |
$ cd <project_dir> | |
$ yarn run buildpack create-custom-origin | |
$ yarn run watch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ yarn create @larsroettig/pwa-extension |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { Targetables } = require('@magento/pwa-buildpack'); | |
module.exports = targets => { | |
const targetables = Targetables.using(targets); | |
const ProductFullDetailComponent = targetables.reactComponent( | |
'@magento/venia-ui/lib/components/ProductFullDetail/productFullDetail.js' | |
); | |
ProductFullDetailComponent.insertBeforeJSX('<Button type="submit" />', '<span>Hello World! </span>'); | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment