$ npm install --save bundle-me
const createBundle = ;try// creates bundle and returns the output path.catch errorconsole;
Get All files
const getAllFiles = ;try;// returns array of files in the given file path.catch errorconsole;
path : input path of the source directoryextn : File Extension (js,css,ts,etc.)outputPath: path of the output file.
I need to Bundle all the files in a particular directory based on the file extension. I know many libraries are available but it's not simple to use. I need to tweek it a lot, so I thought of creating this.
Created bundle-me module, which bundle all the files based on the directory into single output file based on your options provided. It provides array of all the files based on the file extension provided.