包详细信息

razzle-plugin-manifest

jaredpalmer774MIT4.2.18

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

自述文件

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);

更新日志

razzle-plugin-manifest

4.2.18

Patch Changes

  • fa491cd8 Thanks @fivethreeo! - add support for type:module razzle.config.js

  • Updated dependencies [fa491cd8]:

    • razzle@4.2.18
    • razzle-dev-utils@4.2.18

4.2.17

Patch Changes

4.2.16

Patch Changes

  • dc4c7870: add changesets
  • Updated dependencies [dc4c7870]
    • razzle@4.2.16
    • razzle-dev-utils@4.2.16