DPacker
A webpack module splitter & beautifier
Originally designed for discord.. but can be used for pretty much anything..
Usage
Make sure all your files are in one folder (no subfolders).
In this example, I will call it assets-canary
Simply run...
npx dpacker -i ./assetsfolder [-b] [-d]
Parameters
Flag name | Shorthand | Default Value | Purpose |
---|
--input | -i | | The input directory of .js files |
--outDir | -o | ./out | The file to output the separated files |
--manifest | -m | null | Generate a manifest file at the specified path |
--verbose | -v | false | Verbose output |
--beautify | -b | false | Beautify the outputted javascript files |
--allowDuplicates | -d | false | Allows duplicate files to be generated when detected |
--force | -f | false | If the output directory already exists, use this to overwrite it |
--help | -h | | Show the help menu |