diff options
| author | Michael Serajnik <ms@mserajnik.at> | 2017-08-11 16:12:37 +0200 |
|---|---|---|
| committer | Marcin Kurczewski <rr-@sakuya.pl> | 2017-08-11 17:36:10 +0200 |
| commit | 90b0d771478a14e1d6d7fbbd9c6efaa28637535c (patch) | |
| tree | 3150621d167a4c718267a4837c4d39872becaeb4 /client/build.js | |
| parent | 043b182b5e07e522fb2769ebd7214529ac971459 (diff) | |
client/build: fix build, use uglify-es package directly
Diffstat (limited to 'client/build.js')
| -rw-r--r-- | client/build.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/client/build.js b/client/build.js index a803acb..c30f33f 100644 --- a/client/build.js +++ b/client/build.js @@ -70,7 +70,7 @@ function copyFile(source, target) { } function minifyJs(path) { - return require('uglify-js').minify(path, {compress: {unused: false}}).code; + return require('uglify-es').minify(fs.readFileSync(path, 'utf-8'), {compress: {unused: false}}).code; } function minifyCss(css) { |