Replace moduleid and chunk id's with name and guid to create unique ids when working with multiple webpack projects.
Install via npm:
npm install webpack-chunkid-moduleid-plugin
And then require and provide to webpack:
// in webpack.config.js or similar
var WebpackChunkIdModuleIdPlugin = require('webpack-chunkid-moduleid-plugin');
module.exports = {
//...
plugins: [
new WebpackChunkIdModuleIdPlugin ()
]
//...
};
Rendered file looks like this:
webpackJsonp(["chunkname-b74760a7-642e-ba5b-10a9-91e3c61fc374"],[
/* 0 */
/***/ function(module, exports, __webpack_require__) {
'use strict';
__webpack_require__("04b4c6b2f0a058b5df87");
/***/ }
]);