Commit 16829c47 authored by wuyongsheng's avatar wuyongsheng

Merge branch 'rele-nginx' into 'release'

fix: build

See merge request !25
parents fb566a22 c95732ca
...@@ -89,11 +89,11 @@ ...@@ -89,11 +89,11 @@
"start:release-cn": "set \"REACT_APP_ENV=release-cn\" && npm start", "start:release-cn": "set \"REACT_APP_ENV=release-cn\" && npm start",
"start:release-en": "set \"REACT_APP_ENV=release-en\" && npm start", "start:release-en": "set \"REACT_APP_ENV=release-en\" && npm start",
"start": "node scripts/start.js", "start": "node scripts/start.js",
"build:master": "set \"REACT_APP_ENV=master\" && npm build", "build:master": "set \"REACT_APP_ENV=master\" && node --max-old-space-size=6144 scripts/build-master.js",
"build:dev-cn": "set \"REACT_APP_ENV=dev-cn\" && npm build", "build:dev-cn": "set \"REACT_APP_ENV=dev-cn\" && node --max-old-space-size=6144 scripts/build-dev-cn.js",
"build:dev-en": "set \"REACT_APP_ENV=dev-en\" && npm build", "build:dev-en": "set \"REACT_APP_ENV=dev-en\" && node --max-old-space-size=6144 scripts/build-dev-en.js",
"build:release-cn": "set \"REACT_APP_ENV=release-cn\" && npm build", "build:release-cn": "set \"REACT_APP_ENV=release-cn\" && node --max-old-space-size=6144 scripts/build-release-cn.js",
"build:release-en": "set \"REACT_APP_ENV=release-en\" && npm build", "build:release-en": "set \"REACT_APP_ENV=release-en\" && node --max-old-space-size=6144 scripts/build-release-en.js",
"build": "node scripts/build.js", "build": "node scripts/build.js",
"test": "node scripts/test.js" "test": "node scripts/test.js"
}, },
......
...@@ -132,7 +132,7 @@ checkBrowsers(paths.appPath, isInteractive) ...@@ -132,7 +132,7 @@ checkBrowsers(paths.appPath, isInteractive)
}); });
// Create the production build and print the deployment instructions. // Create the production build and print the deployment instructions.
export default function build(previousFileSizes) { function build(previousFileSizes) {
console.log("Creating an optimized production build..."); console.log("Creating an optimized production build...");
const compiler = webpack(config); const compiler = webpack(config);
...@@ -215,3 +215,5 @@ function copyPublicFolder() { ...@@ -215,3 +215,5 @@ function copyPublicFolder() {
filter: (file) => file !== paths.appHtml, filter: (file) => file !== paths.appHtml,
}); });
} }
module.exports = build;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment