Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcdj-web
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
9db71c4d
authored
2023-05-19 14:11:22 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style;打包配置修改
1 parent
2f75ba5d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
6 deletions
vue.config.js
vue.config.js
View file @
9db71c4
...
...
@@ -49,7 +49,7 @@ module.exports = {
}
},
css
:
{
extract
:
fals
e
,
// 是否使用css分离插件 ExtractTextPlugin
extract
:
tru
e
,
// 是否使用css分离插件 ExtractTextPlugin
sourceMap
:
false
,
// 开启 CSS source maps?
loaderOptions
:
{
sass
:
{
...
...
@@ -61,15 +61,13 @@ module.exports = {
// configureWebpack通过操作对象的形式,来修改默认的webpack配置
configureWebpack
:
{
name
:
name
,
entry
:
{
app
:
'./src/main.js'
},
entry
:
'./src/main.js'
,
resolve
:
{
alias
:
{
'@'
:
resolve
(
'src'
)
}
},
devtool
:
'#eval-source-map'
//测试
devtool
:
process
.
env
.
NODE_ENV
===
'development'
?
'#eval-source-map'
:
false
},
// chainWebpack通过链式编程的形式,来修改默认的webpack配置
chainWebpack
(
config
)
{
...
...
@@ -84,8 +82,8 @@ module.exports = {
include
:
'initial'
}
])
// when there are many pages, it will cause too many meaningscss requests
config
.
plugins
.
delete
(
'prefetch'
)
config
.
module
.
rule
(
'svg'
)
.
exclude
.
add
(
resolve
(
'src/image/icons'
))
...
...
Please
register
or
sign in
to post a comment