Skip to content

wesleyalmd/pwa-studio-product-unavailable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PWA Studio Product Unavailable Extension

Preview

Install

1. Adding dependency

yarn add @wesleyalmd/pwa-studio-product-unavailable

2. Wrap module in your local-intercept.js

const { Targetables } = require('@magento/pwa-buildpack');

module.exports = targets => {
  const targetables = Targetables.using(targets);
  const peregrineTargets = targets.of('@magento/peregrine');
  const talonsTarget = peregrineTargets.talons;

  /* Product Unavailable */
  const {
    wrapProductUnavailableModule
  } = require('@wesleyalmd/pwa-studio-product-unavailable/targets');
  wrapProductUnavailableModule(targetables, talonsTarget);
};

About

Product Unavailable extension for PWA Studio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published