webpack-manifest-resource-plugin
webpack manifest resource dependencies plugin
Last updated 7 years ago by hubcarl .
MIT · Repository · Bugs · Original npm
$ cnpm install webpack-manifest-resource-plugin 
SYNC missed versions from official npm registry.

webpack-manifest-resource-plugin

normalize js/css resource dependencies for webpack-manifest-plugin

Install

npm install --save-dev webpack-manifest-resource-plugin

Usage

var ManifestPlugin = require('webpack-manifest-resource-plugin');

module.exports = {
    // ...
    plugins: [
      new ManifestPlugin()
    ]
};

This will generate a manifest.json file in your root output directory with a mapping of all source file names to their corresponding output file, for example:

{
  
 "mods/alpha.js": "mods/alpha.1234567890.js",
 "mods/alpha.css": "mods/alpha.435336266.css",
 "mods/omega.js": "mods/omega.0987654321.js",
 "mods/omega.css": "mods/omega.323299900.css",
 "vendor": "vendor.32465656.js"

  deps:{
    "mods/alpha.js":{
      js: ["vendor.32465656.js", "mods/alpha.1234567890.js"],
      css: ["mods/alpha.435336266.css"]
    },
    "mods/omega.js":{
      js: ["vendor.32465656.js", "mods/omega.0987654321.js"],
      css: ["mods/omega.323299900.css"]
    }
  }
}

API

support webpack-manifest-plugin all api, and add commonsChunk config:

options.commonsChunk

Type: Array
Default: []

the commonsChunk is webpack.optimize.CommonsChunkPlugin name config.

Current Tags

  • 4.2.6                                ...           latest (7 years ago)
  • 4.0.0-beta.2                                ...           next (8 years ago)

3 Versions

  • 2.0.2                                ...           8 years ago
  • 4.0.0-beta.2                                ...           8 years ago
  • 4.2.6                                ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (2)
Dev Dependencies (2)
Dependents (0)
None

Copyright 2013 - present © cnpmjs.org