@chatoo2412/file-list-webpack-plugindeprecated

A webpack 4 plugin generates a JSON file listing all files

Usage no npm install needed!

<script type="module">
  import chatoo2412FileListWebpackPlugin from 'https://cdn.skypack.dev/@chatoo2412/file-list-webpack-plugin';
</script>

README

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!