From 8d427de1e3f8ad67a6b4bf2096473c32af7b942a Mon Sep 17 00:00:00 2001 From: Leo Lamprecht Date: Mon, 22 May 2017 21:10:47 +0200 Subject: [PATCH] Retrieve the correct URL for downloading the CLI --- download/src/index.js | 2 +- download/webpack.js | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/download/src/index.js b/download/src/index.js index 907544d..e9232b1 100644 --- a/download/src/index.js +++ b/download/src/index.js @@ -41,7 +41,7 @@ async function main() { enableProgress('Downloading now CLI ' + packageJSON.version) showProgress(0) - const { url } = asset + const url = asset.browser_download_url const resp = await fetch(url) if (resp.status !== 200) { diff --git a/download/webpack.js b/download/webpack.js index fb4d494..a8bb17d 100644 --- a/download/webpack.js +++ b/download/webpack.js @@ -35,7 +35,6 @@ module.exports = { 'process.env': { NODE_ENV: JSON.stringify('production') } - }), - new webpack.optimize.UglifyJsPlugin() + }) ] }