razzle-plugin-manifest

4.2.18 • Public • Published

razzle-plugin-manifest

This package contains a plugin for generating manifest file for splitted chunk paths with Razzle

Usage in Razzle Projects

npm i razzle-plugin-manifest

or

yarn add razzle-plugin-manifest

Using the plugin with the default options

// razzle.config.js

module.exports = {
  plugins: ['manifest'],
};

A file called chunks.json will get generated at build time. you can import the file using RAZZLE_CHUNKS_MANIFEST enviroment variable.

example:

const chunks = require(process.env.RAZZLE_CHUNKS_MANIFEST);

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i razzle-plugin-manifest

    Weekly Downloads

    320

    Version

    4.2.18

    License

    MIT

    Unpacked Size

    4.96 kB

    Total Files

    4

    Last publish

    Collaborators

    • nima_arf
    • razzle-bot