webpack-chunkid-moduleid-plugin

1.0.2 • Public • Published

webpack-chunkid-moduleid-plugin

Replace moduleid and chunk id's with name and guid to create unique ids when working with multiple webpack projects.

Usage

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");
    

/***/ }
]);

Package Sidebar

Install

npm i webpack-chunkid-moduleid-plugin

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • roels