Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
bdc
/
bdcjg-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
9901ceaa
authored
2023-05-25 14:22:51 +0800
by
renchao@pashanhoo.com
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:监管问题修改
1 parent
241897bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
11 deletions
package.json
vue.config.js
package.json
View file @
9901cea
...
...
@@ -75,4 +75,4 @@
"type"
:
"git"
,
"url"
:
"http://yun.pashanhoo.com:9090/bdc/bdcjg-web.git"
}
}
\ No newline at end of file
}
...
...
vue.config.js
View file @
9901cea
'use strict'
const
path
=
require
(
'path'
)
const
defaultSettings
=
require
(
'./src/settings.js'
)
function
resolve
(
dir
)
{
return
path
.
join
(
__dirname
,
dir
)
}
const
name
=
process
.
env
.
TITLE
const
port
=
process
.
env
.
port
||
process
.
env
.
npm_config_port
||
8888
// dev port
// All configuration item explanations can be find in https://cli.vuejs.org/config/
module
.
exports
=
{
/**
...
...
@@ -45,7 +48,7 @@ module.exports = {
}
},
css
:
{
extract
:
fals
e
,
// 是否使用css分离插件 ExtractTextPlugin
extract
:
tru
e
,
// 是否使用css分离插件 ExtractTextPlugin
sourceMap
:
false
,
// 开启 CSS source maps?
loaderOptions
:
{
sass
:
{
...
...
@@ -56,21 +59,22 @@ module.exports = {
},
// configureWebpack通过操作对象的形式,来修改默认的webpack配置
configureWebpack
:
{
name
:
name
,
externals
:
[{
'./cptable'
:
'var cptable'
}],
optimization
:
{
usedExports
:
true
,
minimize
:
true
},
entry
:
{
app
:
'./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
)
{
config
.
entry
.
app
=
[
'babel-polyfill'
,
'./src/main.js'
];
// it can improve the speed of the first screen, it is recommended to turn on preload
// it can improve the speed of the first screen, it is recommended to turn on preload
config
.
plugin
(
'preload'
).
tap
(()
=>
[
{
...
...
@@ -81,7 +85,6 @@ module.exports = {
include
:
'initial'
}
])
// when there are many pages, it will cause too many meaningscss requests
config
.
plugins
.
delete
(
'prefetch'
)
config
.
module
...
...
Please
register
or
sign in
to post a comment