Skip to content

Allows exporting a manifest that maps entry chunk names to their output files, instead of keeping the mapping inside the webpack bootstrap.

License

Notifications You must be signed in to change notification settings

yolo2013/chunk-manifest-webpack-plugin

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

chunk-manifest-inject2html-webpack-plugin

The only difference is when you use html-webpack-plugin. It will inject the manifest json to you html instead of generate a json file. So you can cache the runtime file even manifest file changed everytime.

Use chunk-manifest-webpack-plugin instead if you don't need this further.

Usage

Install via npm:

npm install chunk-manifest-inject2html-webpack-plugin

Install via yarn:

yarn add chunk-manifest-inject2html-webpack-plugin

And then require and provide to webpack:

// in webpack.config.js or similar
var ChunkManifestPlugin = require('chunk-manifest-inject2html-webpack-plugin');

module.exports = {
  // your config values here
  plugins: [
    new ChunkManifestPlugin()
  ]
};

Options

file

Generate manifest json file or not. Default = false

filename

Where the manifest will be exported to on bundle compilation. This will be relative to the main webpack output directory. Default = "manifest.json"

manifestVariable

What JS variable on the client webpack should refer to when requiring chunks. Default = "webpackManifest"

About

Allows exporting a manifest that maps entry chunk names to their output files, instead of keeping the mapping inside the webpack bootstrap.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%