JSPM

rollup-plugin-entrypoint-hashmanifest

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 111
  • Score
    100M100P100Q88213F
  • License Apache-2.0

A rollup plugin that generates a hash manifest for each entrypoint

Package Exports

  • rollup-plugin-entrypoint-hashmanifest

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (rollup-plugin-entrypoint-hashmanifest) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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