Skip to content

jakearchibald/rollup-plugin-entrypoint-hashmanifest

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 (née replaceinfiles).

$ 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

About

A rollup plugin that generates a hash manifest for each entry point.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 100.0%