diff --git a/config/env.js b/config/env.js
index 905ee7d2..ae1edea6 100644
--- a/config/env.js
+++ b/config/env.js
@@ -76,7 +76,7 @@ function getClientEnvironment(publicUrl) {
// For example,
.
// This should only be used as an escape hatch. Normally you would put
// images into the `src` and `import` them in code to get their paths.
- PUBLIC_URL: '/forgeplus-react/build/.',
+ PUBLIC_URL: '/react/build/.',
}
);
// Stringify all values so we can feed into Webpack DefinePlugin
diff --git a/config/webpack.config.prod.js b/config/webpack.config.prod.js
index 8e38b62f..838ce28a 100644
--- a/config/webpack.config.prod.js
+++ b/config/webpack.config.prod.js
@@ -83,7 +83,7 @@ module.exports = {
// cdn
// publicPath: 'https://shixun.educoder.net/react/build/', //publicPath, https://cdn.educoder.net
// publicPath: 'https://cdn-testeduplus2.educoder.net/react/build/', //publicPath, https://cdn.educoder.net
- publicPath: '/forgeplus-react/build/', //publicPath, https://cdn.educoder.net
+ publicPath: '/react/build/', //publicPath, https://cdn.educoder.net
// Point sourcemap entries to original disk location (format as URL on Windows)
devtoolModuleFilenameTemplate: info =>
diff --git a/scripts/build.js b/scripts/build.js
index f5c692a7..91b76133 100644
--- a/scripts/build.js
+++ b/scripts/build.js
@@ -186,7 +186,7 @@ function generateNewIndexJsp() {
// combinedStream.append(htmlContent);
// combinedStream.pipe(fs2.createWriteStream( filePath ));
- var outputPath = paths.appBuild + '/../../../index.html'
+ var outputPath = paths.appBuild + '/index.html'
fs2.readFile(filePath, 'utf8', function (err,data) {
if (err) {
return console.log(err);
@@ -197,12 +197,12 @@ function generateNewIndexJsp() {
cdnHost = ''
- var mainRegex = /