rollup-plugin-entrypoint-hashmanifest

0.1.2 • Public • Published

rollup-plugin-entrypoint-hashmanifest

A rollup plugin that generates a hash manifest for each entrypoint file you give. The manifest is compatible with the one emitted by hashmark and can be processed by tools like injectassets.

$ npm install --save rollup-plugin-hashmanifest

Usage

// rollup.config.js
import entrypointHashmanifest from "rollup-plugin-entrypoint-";
 
export default {
  input: ["src/main.js", "src/worker.js", "src/serviceworker.js"],
  output: {
    dir: "dist",
    format: "amd",
    entryFileNames: "[name]-[hash].js",
    chunkFileNames: "[name]-[hash].js"
  },
  plugins: [entrypointHashmanifest()]
};

Options

{
  // ...
  plugins: [entrypointHashmanifest(options)];
}
  • manifestName: Name of the file to write the manifest to. Default entrypoint.hashmanifest.json.

License Apache-2.0

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.2
    842
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.1.2
    842
  • 0.1.1
    1
  • 0.1.0
    1
  • 0.0.1
    1

Package Sidebar

Install

npm i rollup-plugin-entrypoint-hashmanifest

Weekly Downloads

845

Version

0.1.2

License

Apache-2.0

Unpacked Size

16.6 kB

Total Files

8

Last publish

Collaborators

  • surma