0.0.8 • Published 5 years ago

@wesleytodd/buildjs v0.0.8

Weekly downloads
1
License
ICS
Repository
github
Last release
5 years ago

Build JS

Build up some js :)

Usage

$ npm in @wesleytodd/buildjs

Without any options it will build index.js to dist/index-{filehash}.js:

const buildjs = require('@wesleytodd/buildjs')

(async () => {
  await buildjs()
})()

Options

// these are the defaults
buildjs({
  basedir: process.cwd(),
  entries: 'index.js',
  outputdir: 'dist',
  outputFilename: 'index-{{hash}}.js',
  outputMapFilename: 'index-{{hash}}.js.map',
  outputMapUrl: 'index-{{hash}}.js.map',
  debug: false,
  watch: false,
  minify: false,
  babelify: true
})