From c4aa30221e7e4f077fced6f0f7564240ad805640 Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Sat, 1 Jun 2019 11:27:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=8A=A8build=E5=90=8Eindex=E4=BD=8D?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/scripts/build.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/public/react/scripts/build.js b/public/react/scripts/build.js index 6dd9d3e5..9267272e 100644 --- a/public/react/scripts/build.js +++ b/public/react/scripts/build.js @@ -184,7 +184,9 @@ function generateNewIndexJsp() { // combinedStream.append(htmlContent); // combinedStream.pipe(fs2.createWriteStream( filePath )); - var outputPath = paths.appBuild + '/../../../app/views/common/index.html.erb' + // var outputPath = paths.appBuild + '/../../../app/views/common/index.html.erb' + var outputPath = paths.appBuild + '/../../../public/react/build/index.html' + fs2.readFile(filePath, 'utf8', function (err,data) { if (err) { return console.log(err);