Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
bkunyun
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bkunyun
Commits
c95732ca
Commit
c95732ca
authored
Jun 10, 2022
by
吴永生#A02208
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: build
parent
63365f52
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
6 deletions
+8
-6
package.json
package.json
+5
-5
build.js
scripts/build.js
+3
-1
No files found.
package.json
View file @
c95732ca
...
...
@@ -89,11 +89,11 @@
"start:release-cn"
:
"set
\"
REACT_APP_ENV=release-cn
\"
&& npm start"
,
"start:release-en"
:
"set
\"
REACT_APP_ENV=release-en
\"
&& npm start"
,
"start"
:
"node scripts/start.js"
,
"build:master"
:
"set
\"
REACT_APP_ENV=master
\"
&&
npm build
"
,
"build:dev-cn"
:
"set
\"
REACT_APP_ENV=dev-cn
\"
&&
npm build
"
,
"build:dev-en"
:
"set
\"
REACT_APP_ENV=dev-en
\"
&&
npm build
"
,
"build:release-cn"
:
"set
\"
REACT_APP_ENV=release-cn
\"
&&
npm build
"
,
"build:release-en"
:
"set
\"
REACT_APP_ENV=release-en
\"
&&
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
\"
&&
node --max-old-space-size=6144 scripts/build-dev-cn.js
"
,
"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
\"
&&
node --max-old-space-size=6144 scripts/build-release-cn.js
"
,
"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"
,
"test"
:
"node scripts/test.js"
},
...
...
scripts/build.js
View file @
c95732ca
...
...
@@ -132,7 +132,7 @@ checkBrowsers(paths.appPath, isInteractive)
});
// Create the production build and print the deployment instructions.
export
default
function
build
(
previousFileSizes
)
{
function
build
(
previousFileSizes
)
{
console
.
log
(
"Creating an optimized production build..."
);
const
compiler
=
webpack
(
config
);
...
...
@@ -215,3 +215,5 @@ function copyPublicFolder() {
filter
:
(
file
)
=>
file
!==
paths
.
appHtml
,
});
}
module
.
exports
=
build
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment