Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
fe-app-h5
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
万亚飞
fe-app-h5
Commits
d2199f3e
Commit
d2199f3e
authored
May 30, 2019
by
万亚飞
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix bug
parent
328bd47c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
webpack.prod.js
config/webpack.prod.js
+2
-2
package.json
package.json
+2
-2
No files found.
config/webpack.prod.js
View file @
d2199f3e
...
@@ -8,8 +8,8 @@ const CleanWebpackPlugin = require('clean-webpack-plugin');
...
@@ -8,8 +8,8 @@ const CleanWebpackPlugin = require('clean-webpack-plugin');
const
OptimizeCssAssetsWebpackPlugin
=
require
(
'optimize-css-assets-webpack-plugin'
);
const
OptimizeCssAssetsWebpackPlugin
=
require
(
'optimize-css-assets-webpack-plugin'
);
const
PrerenderSPAPlugin
=
require
(
'prerender-spa-plugin'
);
const
PrerenderSPAPlugin
=
require
(
'prerender-spa-plugin'
);
const
PreloadWebpackPlugin
=
require
(
'preload-webpack-plugin'
);
const
PreloadWebpackPlugin
=
require
(
'preload-webpack-plugin'
);
const
env
=
require
(
`./
${
process
.
env
.
NODE_ENV
}
.env`
);
const
env
=
require
(
`./
${
process
.
env
.
ENV_MARK
}
.env`
);
console
.
log
(
'env'
,
process
.
env
.
NODE_ENV
,
env
);
console
.
log
(
'env'
,
process
.
env
.
ENV_MARK
,
env
);
const
os
=
require
(
'os'
);
const
os
=
require
(
'os'
);
function
resolveRoot
(
dir
)
{
function
resolveRoot
(
dir
)
{
...
...
package.json
View file @
d2199f3e
...
@@ -79,13 +79,13 @@
...
@@ -79,13 +79,13 @@
"build:test"
:
{
"build:test"
:
{
"command"
:
"webpack --config ./config/webpack.prod.js"
,
"command"
:
"webpack --config ./config/webpack.prod.js"
,
"env"
:
{
"env"
:
{
"
NODE_ENV
"
:
"testing"
"
ENV_MARK
"
:
"testing"
}
}
},
},
"build:prod"
:
{
"build:prod"
:
{
"command"
:
"webpack --config ./config/webpack.prod.js"
,
"command"
:
"webpack --config ./config/webpack.prod.js"
,
"env"
:
{
"env"
:
{
"
NODE_ENV
"
:
"production"
"
ENV_MARK
"
:
"production"
}
}
}
}
},
},
...
...
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