Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas_plus
/
dj-car-life-system
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 400ae7b4
authored
Jul 28, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
屏蔽sentry上传
1 parent
c81b43d7
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
14 deletions
vue.config.js
vue.config.js
View file @
400ae7b
...
@@ -122,20 +122,20 @@ module.exports = {
...
@@ -122,20 +122,20 @@ module.exports = {
)
)
config
.
plugins
=
[...
config
.
plugins
,
...
plugins
]
config
.
plugins
=
[...
config
.
plugins
,
...
plugins
]
// sentry 配置
// sentry 配置
process
.
env
.
NODE_ENV
===
'production'
&&
//
process.env.NODE_ENV === 'production' &&
Object
.
assign
(
config
,
{
//
Object.assign(config, {
plugins
:
[
//
plugins: [
...
config
.
plugins
,
//
...config.plugins,
new
SentryWebpackPlugin
({
//
new SentryWebpackPlugin({
// webpack specific configuration
//
// webpack specific configuration
release
:
'0.0.1'
,
//
release: '0.0.1',
include
:
'./dist'
,
// 需要上传到sentry服务器的资源目录,会自动匹配js 以及map文件
//
include: './dist', // 需要上传到sentry服务器的资源目录,会自动匹配js 以及map文件
ignore
:
[
'node_modules'
,
'vue.config.js'
],
// 忽略文件目录,当然我们在inlcude中制定了文件路径,这个忽略目录可以不加
//
ignore: ['node_modules', 'vue.config.js'], // 忽略文件目录,当然我们在inlcude中制定了文件路径,这个忽略目录可以不加
configFile
:
'.sentryclirc'
,
//
configFile: '.sentryclirc',
urlPrefix
:
'~/dj-carlife-web/'
//
urlPrefix: '~/dj-carlife-web/'
})
//
})
]
//
]
})
//
})
},
},
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
chainWebpack
:
config
=>
{
chainWebpack
:
config
=>
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment