- Notifications
You must be signed in to change notification settings - Fork3
spartez/module-mapping-webpack-plugin
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
This is awebpack plugin for mapping modules onto different files.
Install the plugin with npm:
$ npm install module-mapping-webpack-plugin --save-dev
// webpack.config.jsconstwebpack=require('webpack');constModuleMappingPlugin=require('module-mapping-webpack-plugin');module.exports={// ...plugins:[newModuleMappingPlugin({'./foo.js':'./foo-spartez.js',// ...})]};// foo.jsexportdefault()=>console.log('Hello World!');// foo-spartez.jsexportdefault()=>console.log('Hello Spartez!');// index.jsimportfoofrom'./foo';foo();// → 'Hello Spartez!';
The MIT License
Copyright ©️ 2017 Spartez,https://spartez.com
About
Webpack plugin for mapping modules onto different files
Topics
Resources
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.