Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
CivManage
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
ReactWeb5
CivManage
Commits
100ebea6
Commit
100ebea6
authored
Oct 23, 2020
by
张烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 二级路由打包部署
parent
c3ff8b48
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
8 deletions
+9
-8
.env
.env
+5
-4
webpack.base.babel.js
internals/webpack/webpack.base.babel.js
+1
-1
webpack.prod.babel.js
internals/webpack/webpack.prod.babel.js
+2
-2
index.js
src/containers/App/index.js
+1
-1
No files found.
.env
View file @
100ebea6
PROXY=http://192.168.19.102:8005/
# PUBLIC_PATH = reactOMS
HOST=localhost
PROXY = http://192.168.19.102:8005/
PORT=3001
HOST = localhost
\ No newline at end of file
PORT = 3001
\ No newline at end of file
internals/webpack/webpack.base.babel.js
View file @
100ebea6
...
@@ -7,7 +7,7 @@ module.exports = options => ({
...
@@ -7,7 +7,7 @@ module.exports = options => ({
output
:
Object
.
assign
(
output
:
Object
.
assign
(
{
{
path
:
path
.
resolve
(
process
.
cwd
(),
'build'
),
path
:
path
.
resolve
(
process
.
cwd
(),
'build'
),
publicPath
:
'/
'
,
publicPath
:
process
.
env
.
PUBLIC_PATH
||
'/reactOMS
'
,
},
},
options
.
output
,
options
.
output
,
),
// Merge with env dependent settings
),
// Merge with env dependent settings
...
...
internals/webpack/webpack.prod.babel.js
View file @
100ebea6
...
@@ -18,8 +18,8 @@ module.exports = require('./webpack.base.babel')({
...
@@ -18,8 +18,8 @@ module.exports = require('./webpack.base.babel')({
// Utilize long-term caching by adding content hashes (not compilation hashes) to compiled assets
// Utilize long-term caching by adding content hashes (not compilation hashes) to compiled assets
output
:
{
output
:
{
filename
:
'[name].[chunkhash].js'
,
filename
:
'
static/
[name].[chunkhash].js'
,
chunkFilename
:
'[name].[chunkhash].chunk.js'
,
chunkFilename
:
'
static/
[name].[chunkhash].chunk.js'
,
},
},
optimization
:
{
optimization
:
{
...
...
src/containers/App/index.js
View file @
100ebea6
...
@@ -12,7 +12,7 @@ export default function App() {
...
@@ -12,7 +12,7 @@ export default function App() {
<
Helmet
titleTemplate
=
"%s - 运维平台"
defaultTitle
=
"运维平台"
>
<
Helmet
titleTemplate
=
"%s - 运维平台"
defaultTitle
=
"运维平台"
>
<
meta
name
=
"description"
content
=
"运维平台"
/>
<
meta
name
=
"description"
content
=
"运维平台"
/>
<
/Helmet
>
<
/Helmet
>
<
Router
>
<
Router
basename
=
{
process
.
env
.
PUBLIC_PATH
||
'reactOMS'
}
>
<
Switch
>
{
renderRoutes
(
config
.
routes
)}
<
/Switch
>
<
Switch
>
{
renderRoutes
(
config
.
routes
)}
<
/Switch
>
<
/Router
>
<
/Router
>
<
/
>
<
/
>
...
...
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