diff options
author | Florian Dold <florian.dold@gmail.com> | 2017-04-24 23:18:15 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2017-04-24 23:18:15 +0200 |
commit | c26ee93d53a0b5fe6f20b03c1dbcee54f217cd2b (patch) | |
tree | 55e6f640033b9c1929d0fc713fae121a91ffb775 /gulpfile.js | |
parent | cee7786b0015d63536cec77d5ad2c9f73f3f02ec (diff) |
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.
Diffstat (limited to 'gulpfile.js')
-rw-r--r-- | gulpfile.js | 4 |
1 files changed, 2 insertions, 2 deletions
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); |