- Magento 2.4.1
props | type | default value |
---|---|---|
showOnFooter | bool | true |
enableModal | bool | true |
1. Adding dependency
yarn add @wesleyalmd/pwa-studio-newsletter
2. Wrap module in your local-intercept.js
const { Targetables } = require('@magento/pwa-buildpack');
module.exports = targets => {
const targetables = Targetables.using(targets);
/** Newsletter extension */
const {
wrapNewsletterModuleTargetable
} = require('@wesleyalmd/pwa-studio-newsletter/targets');
wrapNewsletterModuleTargetable(targetables, {
showOnFooter: true,
enableModal: true
});
};