1.0.3 • Published 5 years ago

@chatoo2412/file-list-webpack-plugin v1.0.3

Weekly downloads
1
License
MIT
Repository
github
Last release
5 years ago

CircleCI

file-list-webpack-plugin

A webpack 4 plugin generates a JSON file listing all files

Install

npm install --dev @chatoo2412/file-list-webpack-plugin

How to Use

// webpack.config.js

const FileListPlugin = require('@chatoo2412/file-list-webpack-plugin');

module.exports = {
  // ...

  plugins: [new FileListPlugin()],

  // ...
};

Options

All options are optional.

const options = {
  outFilename,
  exclude,
};

new FileListPlugin(options);

outFilename: String (default: 'fileList.json')

exclude: RegExp (default: undefined)

Output Example

// dist/fileList.json

{
  ".js": ["main.js", "vendor.js"],
  ".css": ["main.css"],
  ".map": ["main.js.map", "vendor.js.map", "main.css.map"]
}

Contributing

Welcome!