You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 7-8.RSVP
Socket
Socket
Sign inDemoInstall

webpack-page-assets-plugin

Package Overview
Dependencies
1
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

webpack-page-assets-plugin

webpack plugin for generating file list every page


Version published
Weekly downloads
312
increased by56%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

webpack-page-assets-plugin

webpack plugin for generating file list every page.

Install

yarn install webpack-page-assets-plugin

Usage

Create a webpack.config.js file:

const AssetsPlugin = require("webpack-page-assets-plugin");
const options = {};

module.exports = {
  plugins: [
    new AssetsPlugin(options)
  ]
}

And run webpack:

$ npx webpack

With default options, it will create a filelist.json file in the output directory for the build. This will contain the name of page and its corresponding entry file paths.

For example:

[
  {
    "pageName": "App",
    "files": [
      "chunk-vendors.5764437f3776509621e4.js",
      "app.3971705be3aede5e7cac.js"
    ]
  }
]

Options

fileName

Type: String

Default: filelist.json

Specifies the file name to use for the resulting file list. By default, the plugin will emit filelist.json to your output directory. Passing an absolute path to the fileName option will override both the file name and path.

publicPath

Type: String

Default: <webpack-config>.output.publicPath

A path prefix that will be added to values of the manifest.

excludePage (not complete)

Type: Array<RegExp | String>

Default: []

FAQs

Package last updated on 02 Dec 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc