Recursively crawl and scan directories, browserifying/watchifying multiple main files into an output directory
PostCSS analog is: postcss-crawl.
const crawl =const browserifyOptions =transform: 'babelify'const crawlOptions =input: 'source/js'output: 'dist/js'
Browserify option are the same as those found in the browserify api docs
Crawl options (the first set of options), can include:
log: Boolean - whether to print info about the build process (defaults to true)
watch: Boolean - whether to watch for file changes and continuously compile files, or to build one-time and exit (defaults to true)
output: String - directory path that you want to put built output files into (required)
mainFile: String - filename you want to use for the page/index/parent/main files (defaults to 'page.js')