webpack-manifest-generator

0.0.1 • Public • Published

Manifest Generator for Webpack

Webpack Plugin that generates a manifest of bundled files.

Usage

// webpack.config.js  
var ManifestGeneratorPlugin = require('manifest-generator-plugin');
 
var config = {
  ...
  entry: {
    "bundle": "./src/application.js",
    "vendors": "./vendors/vendors.js"
  },
  output: {
    path: './public/assets/',
    filename: 'js/[name]-[hash].js',
    publicPath: "http://example.com/assets"
  },
  plugins: {
    new ManifestGeneratorPlugin("PATH_TO_DEST_DIRECTORY")
  }
  ...
}
 
module.exports = config;

Output

{
  "bundle.js": "js/bundle-f34dc68a3493edfcaa3a.js",
  "vendors.js": "js/vendors-13adcef238710a91e834.js"
}

Readme

Keywords

Package Sidebar

Install

npm i webpack-manifest-generator

Weekly Downloads

0

Version

0.0.1

License

ISC

Last publish

Collaborators

  • dev-influitive
  • daegren