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
4 years ago
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/
HOST=localhost
PORT=3001
\ No newline at end of file
# PUBLIC_PATH = reactOMS
PROXY = http://192.168.19.102:8005/
HOST = localhost
PORT = 3001
\ No newline at end of file
This diff is collapsed.
Click to expand it.
internals/webpack/webpack.base.babel.js
View file @
100ebea6
...
...
@@ -7,7 +7,7 @@ module.exports = options => ({
output
:
Object
.
assign
(
{
path
:
path
.
resolve
(
process
.
cwd
(),
'build'
),
publicPath
:
'/
'
,
publicPath
:
process
.
env
.
PUBLIC_PATH
||
'/reactOMS
'
,
},
options
.
output
,
),
// Merge with env dependent settings
...
...
This diff is collapsed.
Click to expand it.
internals/webpack/webpack.prod.babel.js
View file @
100ebea6
...
...
@@ -18,8 +18,8 @@ module.exports = require('./webpack.base.babel')({
// Utilize long-term caching by adding content hashes (not compilation hashes) to compiled assets
output
:
{
filename
:
'[name].[chunkhash].js'
,
chunkFilename
:
'[name].[chunkhash].chunk.js'
,
filename
:
'
static/
[name].[chunkhash].js'
,
chunkFilename
:
'
static/
[name].[chunkhash].chunk.js'
,
},
optimization
:
{
...
...
This diff is collapsed.
Click to expand it.
src/containers/App/index.js
View file @
100ebea6
...
...
@@ -12,7 +12,7 @@ export default function App() {
<
Helmet
titleTemplate
=
"%s - 运维平台"
defaultTitle
=
"运维平台"
>
<
meta
name
=
"description"
content
=
"运维平台"
/>
<
/Helmet
>
<
Router
>
<
Router
basename
=
{
process
.
env
.
PUBLIC_PATH
||
'reactOMS'
}
>
<
Switch
>
{
renderRoutes
(
config
.
routes
)}
<
/Switch
>
<
/Router
>
<
/
>
...
...
This diff is collapsed.
Click to expand it.
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