Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
clique-web
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
clique
clique-web
Commits
abae7449
Commit
abae7449
authored
Nov 12, 2021
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 调整打包配置
parent
39d46418
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
3 deletions
+3
-3
webpack.dev.conf.js
build/webpack.dev.conf.js
+2
-2
index.js
config/index.js
+1
-1
No files found.
build/webpack.dev.conf.js
View file @
abae7449
...
@@ -45,7 +45,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
...
@@ -45,7 +45,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
},
},
before
(
app
)
{
before
(
app
)
{
app
.
get
(
'/'
,
(
req
,
res
)
=>
{
app
.
get
(
'/'
,
(
req
,
res
)
=>
{
res
.
redirect
(
'/gic-clique/'
);
res
.
redirect
(
config
.
dev
.
assetsPublicPath
);
})
})
},
},
},
},
...
@@ -88,7 +88,7 @@ module.exports = new Promise((resolve, reject) => {
...
@@ -88,7 +88,7 @@ module.exports = new Promise((resolve, reject) => {
// Add FriendlyErrorsPlugin
// Add FriendlyErrorsPlugin
devWebpackConfig
.
plugins
.
push
(
new
FriendlyErrorsPlugin
({
devWebpackConfig
.
plugins
.
push
(
new
FriendlyErrorsPlugin
({
compilationSuccessInfo
:
{
compilationSuccessInfo
:
{
messages
:
[
`Your application is running here: http://
${
devWebpackConfig
.
devServer
.
host
}
:
${
port
}
`
],
messages
:
[
`Your application is running here: http://
${
devWebpackConfig
.
devServer
.
host
}
:
${
port
}
${
config
.
dev
.
assetsPublicPath
}
`
],
},
},
onErrors
:
config
.
dev
.
notifyOnErrors
onErrors
:
config
.
dev
.
notifyOnErrors
?
utils
.
createNotifierCallback
()
?
utils
.
createNotifierCallback
()
...
...
config/index.js
View file @
abae7449
...
@@ -9,7 +9,7 @@ module.exports = {
...
@@ -9,7 +9,7 @@ module.exports = {
// Paths
// Paths
assetsSubDirectory
:
'static'
,
assetsSubDirectory
:
'static'
,
assetsPublicPath
:
'/gic-clique'
,
assetsPublicPath
:
'/gic-clique
/
'
,
proxyTable
:
{},
//proxyConfig.proxyList,
proxyTable
:
{},
//proxyConfig.proxyList,
// Various Dev Server settings
// Various Dev Server settings
...
...
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