Module Mapping Webpack Plugin
This is a webpack plugin for mapping modules onto different files.
Installation
Install the plugin with npm:
$ npm install module-mapping-webpack-plugin --save-dev
Usage
const webpack = require('webpack');
const ModuleMappingPlugin = require('module-mapping-webpack-plugin');
module.exports = {
plugins: [
new ModuleMappingPlugin({
'./foo.js': './foo-spartez.js',
})
]
};
export default () => console.log('Hello World!');
export default () => console.log('Hello Spartez!');
import foo from './foo';
foo();
License
The MIT License
Copyright :copyright: 2016 Spartez, https://spartez.com