@grapes-agency/named-chunk-group
A webpack plugin to generate a manifest.json grouped by chunk names.
Last updated 2 years ago by lmachens .
ISC · Repository · Original npm · Tarball · package.json
$ cnpm install @grapes-agency/named-chunk-group 
SYNC missed versions from official npm registry.

named-chunk-group

A webpack plugin to generate a manifest.json grouped by chunk names.

Install

$ npm install --save-dev @grapes-agency/named-chunk-group

Usage

const NamedChunkGroupPlugin = require("@grapes-agency/named-chunk-group");
const path = require("path");

const webpackConfig = {
  entry: {
    main: "main.js",
    polyfill: "polyfill.js"
  },
  output: {
    filename: "[name].js",
    chunkFilename: "[name].js",
    path: path.resolve(__dirname, "dist")
  },
  plugins: [
    new NamedChunkGroupPlugin({
      filename: "./manifest.json"
    })
  ]
};

This will generate a manifest.json with this content:

{
  "main": [
    {
      "id": "main",
      "name": "main",
      "file": "main.js",
      "publicPath": "/dist/main.js"
    }
  ],
  "polyfill": [
    {
      "id": "polyfill",
      "name": "polyfill",
      "file": "polyfill.js",
      "publicPath": "/dist/polyfill.js"
    }
  ]
}

Current Tags

  • 1.0.2                                ...           latest (2 years ago)

3 Versions

  • 1.0.2                                ...           2 years ago
  • 1.0.1                                ...           2 years ago
  • 1.0.0                                ...           2 years ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |