mirror of
https://github.com/prurigro/hypothetical.git
synced 2024-11-09 11:16:39 -05:00
Update babel-preset-es2015 and add debug stripping support to the gulpfile
This commit is contained in:
parent
6074935742
commit
d388b02903
2 changed files with 4 additions and 2 deletions
|
@ -9,6 +9,7 @@ const gulp = require("gulp"),
|
|||
gModernizr = require("gulp-modernizr"),
|
||||
gBabel = require("gulp-babel"),
|
||||
gPostCSS = require("gulp-postcss"),
|
||||
gStripDebug = require("gulp-strip-debug"),
|
||||
autoprefixer = require("autoprefixer");
|
||||
|
||||
// determine if gulp has been run with --production
|
||||
|
@ -80,7 +81,7 @@ function processJavaScript(ouputFilename, inputFiles, es6) {
|
|||
.pipe(gConcat(ouputFilename + ".js"));
|
||||
|
||||
if (es6) { javascript.pipe(gBabel({ presets: [ "es2015" ] })); }
|
||||
if (prod) { javascript.pipe(gUglify()); }
|
||||
if (prod) { javascript.pipe(gStripDebug()).pipe(gUglify()); }
|
||||
return javascript.pipe(gulp.dest("public/js/"));
|
||||
}
|
||||
|
||||
|
|
|
@ -9,7 +9,7 @@
|
|||
},
|
||||
"dependencies": {
|
||||
"autoprefixer": "^6.4.0",
|
||||
"babel-preset-es2015": "^6.13.2",
|
||||
"babel-preset-es2015": "^6.14.0",
|
||||
"gulp": "^3.9.1",
|
||||
"gulp-babel": "^6.1.2",
|
||||
"gulp-concat": "^2.6.0",
|
||||
|
@ -18,6 +18,7 @@
|
|||
"gulp-postcss": "^6.1.1",
|
||||
"gulp-sass": "^2.3.2",
|
||||
"gulp-sass-glob": "^1.0.6",
|
||||
"gulp-strip-debug": "^1.1.0",
|
||||
"gulp-uglify": "^2.0.0",
|
||||
"gulp-util": "^3.0.7"
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue