1.0.0 • Published 2 years ago

override-mapping-webpack-plugin v1.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

Override Mapping Webpack Plugin

This plugin is used on PWA Studio project. It helps you to override components/files.

Usage

$ yarn add -D @cristianodmtsb/override-mapping-webpack-plugin

Import it as a new plugin on your webpack.config.js file.

const overrideMappingPlugin = require('override-mapping-webpack-plugin');

clientConfig.plugins.push(new overrideMappingPlugin({
    // Insert here the map that you need to override. It will be like this:
    '@magento/venia-ui/lib/components/Header/header.css': 'src/lib/components/Header/header.css',
}));