Fixed grunt babel path and added --dev option

This commit is contained in:
abalabahaha 2015-11-15 11:44:32 -08:00
parent 9ad55668a1
commit 2e498c82a0

View file

@ -8,13 +8,13 @@ module.exports = function (grunt) {
babel: { babel: {
options: { options: {
loose: "all", loose: "all",
compact: true compact: !grunt.option('dev')
}, },
dist: { dist: {
files: [{ files: [{
expand: true, expand: true,
cwd: "src/", cwd: "src/",
src: ["/**/**.*"], src: ["**/**.*"],
dest: "lib/", dest: "lib/",
ext: ".js" ext: ".js"
}] }]