Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
mr-julyedu
Overview
Overview
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
baiguangyao
mr-julyedu
Commits
14128572
Commit
14128572
authored
Jun 20, 2019
by
zhanghaozhe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
build
parent
40b08f4f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
1 additions
and
3 deletions
+1
-3
config/env.js
+0
-1
config/paths.js
+1
-1
scripts/pre.js
+0
-1
No files found.
config/env.js
View file @
14128572
...
@@ -79,7 +79,6 @@ function getClientEnvironment(publicUrl) {
...
@@ -79,7 +79,6 @@ function getClientEnvironment(publicUrl) {
PUBLIC_URL
:
publicUrl
,
PUBLIC_URL
:
publicUrl
,
}
}
);
);
console
.
log
(
raw
);
// Stringify all values so we can feed into Webpack DefinePlugin
// Stringify all values so we can feed into Webpack DefinePlugin
const
stringified
=
{
const
stringified
=
{
'process.env'
:
Object
.
keys
(
raw
).
reduce
((
env
,
key
)
=>
{
'process.env'
:
Object
.
keys
(
raw
).
reduce
((
env
,
key
)
=>
{
...
...
config/paths.js
View file @
14128572
...
@@ -69,7 +69,7 @@ const resolveModule = (resolveFn, filePath) => {
...
@@ -69,7 +69,7 @@ const resolveModule = (resolveFn, filePath) => {
module
.
exports
=
{
module
.
exports
=
{
dotenv
:
resolveApp
(
'.env'
),
dotenv
:
resolveApp
(
'.env'
),
appPath
:
resolveApp
(
'.'
),
appPath
:
resolveApp
(
'.'
),
appBuild
:
resolveApp
(
'
dist
'
),
appBuild
:
resolveApp
(
'
build
'
),
appPublic
:
resolveApp
(
'public'
),
appPublic
:
resolveApp
(
'public'
),
appHtml
:
resolveApp
(
'public/index.html'
),
appHtml
:
resolveApp
(
'public/index.html'
),
appIndexJs
:
resolveModule
(
resolveApp
,
'src/index'
),
appIndexJs
:
resolveModule
(
resolveApp
,
'src/index'
),
...
...
scripts/pre.js
View file @
14128572
...
@@ -97,7 +97,6 @@ checkBrowsers(paths.appPath, isInteractive)
...
@@ -97,7 +97,6 @@ checkBrowsers(paths.appPath, isInteractive)
WARN_AFTER_BUNDLE_GZIP_SIZE
,
WARN_AFTER_BUNDLE_GZIP_SIZE
,
WARN_AFTER_CHUNK_GZIP_SIZE
WARN_AFTER_CHUNK_GZIP_SIZE
);
);
console
.
log
();
const
appPackage
=
require
(
paths
.
appPackageJson
);
const
appPackage
=
require
(
paths
.
appPackageJson
);
const
publicUrl
=
paths
.
publicUrl
;
const
publicUrl
=
paths
.
publicUrl
;
...
...
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