Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
marketing-web
marketing
Commits
2f09be3d
Commit
2f09be3d
authored
Nov 12, 2021
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 调整打包配置
parent
386ba597
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
webpack.dev.conf.js
build/webpack.dev.conf.js
+2
-2
No files found.
build/webpack.dev.conf.js
View file @
2f09be3d
...
@@ -41,7 +41,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
...
@@ -41,7 +41,7 @@ const devWebpackConfig = merge(baseWebpackConfig, {
},
},
before
(
app
)
{
before
(
app
)
{
app
.
get
(
'/'
,
(
req
,
res
)
=>
{
app
.
get
(
'/'
,
(
req
,
res
)
=>
{
res
.
redirect
(
'/marketing/'
);
res
.
redirect
(
config
.
dev
.
assetsPublicPath
);
})
})
},
},
},
},
...
@@ -84,7 +84,7 @@ module.exports = new Promise((resolve, reject) => {
...
@@ -84,7 +84,7 @@ module.exports = new Promise((resolve, reject) => {
devWebpackConfig
.
plugins
.
push
(
devWebpackConfig
.
plugins
.
push
(
new
FriendlyErrorsPlugin
({
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
?
utils
.
createNotifierCallback
()
:
undefined
onErrors
:
config
.
dev
.
notifyOnErrors
?
utils
.
createNotifierCallback
()
:
undefined
})
})
...
...
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