1.0.2 • Published 7 years ago

webpack-chunkid-moduleid-plugin v1.0.2

Weekly downloads
4
License
MIT
Repository
-
Last release
7 years ago

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

/***/ }
]);