1.0.1 • Published 8 years ago
filelist-webpack-plugin v1.0.1
#filelist Plugin Generate all files as json file in folder.
##Install
npm install --save-dev filelist-webpack-plugin##Usage
const filelistWebpackPlugin = require('filelist-webpack-plugin');
module.exports = {
  
  plugins: [
    new filelistWebpackPlugin({
        filePath: '../folderName',
        exportPath: '../exportPath/folderName/filelist.json'
    }),
  ]
}##Output filelist.json
[
    {
        "2017-01-01": [
            "2017-01-01.md"
        ]
    },
    {
        "2017-01-02": [
            "2017-01-02.md"
        ]
    },
    {
        "2017-01-03": [
            "2017-01-03.md"
        ]
    }
]