Created
November 30, 2015 15:23
-
-
Save edwardhotchkiss/7ac5cbb3171126d9db69 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Compile JSX/ES6 to .js | |
*/ | |
var babelify = require('babelify'); | |
module.exports = function(grunt) { | |
grunt.config.set('browserify', { | |
options: { | |
transform: [ | |
[ | |
babelify, { presets: ['es2015', 'react'] } | |
] | |
] | |
}, | |
dev: { | |
files: { | |
'assets/js/app.js': ['assets/js/src/app.jsx'] | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-browserify'); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment