From 541bafaa6c1d5f5ae33fd8ccd8ba9fde2735ed2d Mon Sep 17 00:00:00 2001 From: James Barnsley Date: Mon, 2 Oct 2017 06:03:45 +1300 Subject: [PATCH] HTML build complete --- build_tools/build.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/build_tools/build.js b/build_tools/build.js index 475bad80..76dcf69c 100755 --- a/build_tools/build.js +++ b/build_tools/build.js @@ -16,10 +16,7 @@ copydir('src/assets', 'mopidy_iris/static/assets', function(error){ console.log('Copied assets'); var html_file = "mopidy_iris/static/index.html"; - fs.createReadStream("src/index.html").pipe(fs.createWriteStream(html_file)); - console.log('Copied HTML'); - - var html_file_content = fs.readFileSync(html_file, "utf8"); + var html_file_content = fs.readFileSync("src/index.html", "utf8"); html_file_content = html_file_content.replace("VERSION_HERE", version); html_file_content = html_file_content.replace("BUILD_HERE", build); fs.writeFileSync(html_file, html_file_content, 'utf8');