From c26ee93d53a0b5fe6f20b03c1dbcee54f217cd2b Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Mon, 24 Apr 2017 23:18:15 +0200 Subject: Optimize production builds. Uses UglifyJS, and thus TypeScript needs to compile down to ES5, since UglifyJS does not yet fully support ES6. Once all ES6 bugs in UglifyJS, we should compile to ES6 again. --- gulpfile.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'gulpfile.js') diff --git a/gulpfile.js b/gulpfile.js index 9841b5f75..e1897330b 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -101,7 +101,7 @@ const paths = { const tsBaseArgs = { - target: "es6", + target: "es5", jsx: "react", reactNamespace: "React", experimentalDecorators: true, @@ -165,7 +165,7 @@ gulp.task("dist-prod", ["clean", "compile-prod"], function () { }); gulp.task("compile-prod", function (callback) { - let config = require("./webpack.config.js"); + let config = require("./webpack.config.js")({prod: true}); webpack(config, function(err, stats) { if(err) { throw new gutil.PluginError("webpack", err); -- cgit v1.2.3