README
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);
: outFilenameString
(default: 'fileList.json'
)
: excludeRegExp
(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!