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
// webpack.config.jsconst webpack = ;const ModuleMappingPlugin = ; moduleexports = // ... plugins: './foo.js': './foo-spartez.js' // ... ; // foo.js console; // foo-spartez.js console; // index.js;; // → 'Hello Spartez!';
License
The MIT License
Copyright ©️ 2016 Spartez, https://spartez.com