magecom-red-theme
v1.0.17
Published
test theme
Downloads
3
Readme
Installation: Add this package ( yarn add magecom-red-theme ) to already created pwa studio ( yarn create @magento/pwa )
if you want to override venia's 'components, add new component to dependencies section of package.json and to componentOverrideMapping object of intercept.js
If you want to override files from componentOverrideMapping object magecom-red-theme/intercept.js add this to local-intercept.js of your @magento/pwa studio.
local-intercept.js
const componentOverrideMapping = { 'nikolay-kirichenko-custom-footer': './src/components/Footer', };
const moduleOverridePlugin = require('magecom-red-theme/moduleOverrideWebpackPlugin');
module.exports = targets => { targets.of('@magento/pwa-buildpack').webpackCompiler.tap(compiler => { new moduleOverridePlugin(componentOverrideMapping).apply(compiler); }) }