From 1dd22140af60d167b0af91aa49bd6c1b5e656fbd Mon Sep 17 00:00:00 2001 From: hjm <63528605@qq.com> Date: Mon, 26 Aug 2019 11:07:58 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=BA=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/scripts/build.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/react/scripts/build.js b/public/react/scripts/build.js index 049e2eda1..269304764 100644 --- a/public/react/scripts/build.js +++ b/public/react/scripts/build.js @@ -204,7 +204,7 @@ function generateNewIndexJsp() { (function() { var _host = '' if (window.location.host == 'pre-newweb.educoder.net') { - _host = 'http://testali-cdn.educoder.net/react/build/' + _host = 'https://testali-cdn.educoder.net/react/build/' } else if (window.location.host == 'www.educoder.net') { _host = 'https://ali-newweb.educoder.net/react/build/' } @@ -216,7 +216,7 @@ function generateNewIndexJsp() { var jsMinAllRegex = / var result = data - .replace(jsMinAllRegex, '') + .replace(jsMinAllRegex, code) // .replace('/js/js_min_all.js', `${cdnHost}/react/build/js/js_min_all.js?v=${newVersion}`) // .replace('/js/js_min_all_2.js', `${cdnHost}/react/build/js/js_min_all_2.js?v=${newVersion}`) @@ -226,7 +226,7 @@ function generateNewIndexJsp() { .replace('/css/iconfont.css', `${cdnHost}/react/build/css/iconfont.css?v=${newVersion}`) .replace(/\/js\/create_kindeditor.js/g, `${cdnHost}/react/build/js/create_kindeditor.js?v=${newVersion}`) - .replace(mainRegex, code) + .replace(mainRegex, '') // .replace('/react/build/./static/css/main', `${cdnHost}/react/build/./static/css/main`) // .replace('/react/build/./static/js/main', `${cdnHost}/react/build/./static/js/main`)