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`)