1.0.1 • Published 7 years ago

filelist-webpack-plugin v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
7 years ago

#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"
        ]
    }
]