Skip to content

Instantly share code, notes, and snippets.

@jamesmosier
Last active February 18, 2016 02:36
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 jamesmosier/18c71a01c70d4bd8890b to your computer and use it in GitHub Desktop.
Save jamesmosier/18c71a01c70d4bd8890b to your computer and use it in GitHub Desktop.
babel js grunt task
//npm install --save-dev grunt-babel babel-preset-es2015
'use strict';
module.exports = {
options: {
sourceMap: true,
presets: ['es2015']
},
dist: {
files: [{
expand: true,
cwd: 'web',
src: ['**/*.js'],
dest: 'dist/web',
ext: '.js'
}, {
'dist/app.js': 'app.js'
}]
}
};
// grunt.registerTask('dev', [
// 'babel'
// ]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment