Skip to content

Instantly share code, notes, and snippets.

@edwardhotchkiss
Created November 30, 2015 15:23
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 edwardhotchkiss/7ac5cbb3171126d9db69 to your computer and use it in GitHub Desktop.
Save edwardhotchkiss/7ac5cbb3171126d9db69 to your computer and use it in GitHub Desktop.
/**
* 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