1.2.11 • Published 4 years ago
devpacker-cli v1.2.11
devpacker-cli
code conversion through command lines
use the command to display the list of options
> devpacker -h
Example
out file
> devpacker --entry filename.js --output bundle.js --format umd --minified true
create configuration file and run bundle
> devpacker -cf
> devpacker start
devpacker.config.js
//config -> object or array<Object>
module.exports = [{
entry: "",// dirname or filename
outDir: "",
outFile: "",
// configuration https://www.npmjs.com/package/devpacker
options: {
format: "cjs",
minified: false
},
// avalible when entry is directory
exclude: /(bundle|node_modules)$/, // exclude when scanning
/**
* by default ignores hidden files and directories,
* use it if you want to include in scan
*/
include: /[]/
}]