Skip to content

Instantly share code, notes, and snippets.

@Majirefy
Created April 13, 2017 06:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Majirefy/47c6b6714f4656841bb65e9be804dfb1 to your computer and use it in GitHub Desktop.
Save Majirefy/47c6b6714f4656841bb65e9be804dfb1 to your computer and use it in GitHub Desktop.
var browserify = require('browserify');
var tsify = require('tsify');
browserify()
.add('src/main.ts')
.plugin(tsify, { project: '.' })
.transform('browserify-shim')
.bundle()
.on('error', function (error) { console.error(error.toString()); })
.pipe(process.stdout);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment