summaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2017-04-24 23:18:15 +0200
committerFlorian Dold <florian.dold@gmail.com>2017-04-24 23:18:15 +0200
commitc26ee93d53a0b5fe6f20b03c1dbcee54f217cd2b (patch)
tree55e6f640033b9c1929d0fc713fae121a91ffb775 /gulpfile.js
parentcee7786b0015d63536cec77d5ad2c9f73f3f02ec (diff)
downloadwallet-core-c26ee93d53a0b5fe6f20b03c1dbcee54f217cd2b.tar.gz
wallet-core-c26ee93d53a0b5fe6f20b03c1dbcee54f217cd2b.tar.bz2
wallet-core-c26ee93d53a0b5fe6f20b03c1dbcee54f217cd2b.zip
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.js4
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);