Last active
February 18, 2016 02:36
-
-
Save jamesmosier/18c71a01c70d4bd8890b to your computer and use it in GitHub Desktop.
babel js grunt task
This file contains hidden or 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
//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