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 f2584945
authored
Jul 29, 2022
by
张立顺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
config:配置sentry
1 parent
400ae7b4
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
22 additions
and
21 deletions
.sentryclirc
src/main.js
vue.config.js
.sentryclirc
View file @
f258494
[defaults]
auth.token=45d2be625091494b9a0de35af25bb273c0a471650575471096d60dd61f6995e6
url = 'http://sentry.glsx.com.cn'
org = sentry
defaults.url = http://sentry.glsx.com.cn
project = dj-car-life-system
defaults.org = sentry
[auth]
defaults.project =dj-carlife-web
token = 2d992c92b53b40b9869313a353c037d1208ee8bfcc1d418eaec1777f846401b6
src/main.js
View file @
f258494
...
@@ -48,7 +48,7 @@ if (!isProd) {
...
@@ -48,7 +48,7 @@ if (!isProd) {
process
.
env
.
NODE_ENV
===
'production'
&&
process
.
env
.
NODE_ENV
===
'production'
&&
Sentry
.
init
({
Sentry
.
init
({
Vue
,
Vue
,
dsn
:
'http://
c130dfd99792456ca835ca54680a8bbf@sentry.glsx.com.cn/14
'
,
dsn
:
'http://
889b61999b9a45448b42f972aa94d11d@sentry.glsx.com.cn/16
'
,
// dsn: 'http://6225fb8e73fb453a8455a9371f3517da@192.168.3.115:9000/4',
// dsn: 'http://6225fb8e73fb453a8455a9371f3517da@192.168.3.115:9000/4',
integrations
:
[
integrations
:
[
new
BrowserTracing
({
new
BrowserTracing
({
...
...
vue.config.js
View file @
f258494
...
@@ -4,6 +4,7 @@ const forElementUI = require('webpack-theme-color-replacer/forElementUI')
...
@@ -4,6 +4,7 @@ const forElementUI = require('webpack-theme-color-replacer/forElementUI')
const
HardPlugin
=
require
(
'hard-source-webpack-plugin'
)
// 使用缓存,优化启动速度
const
HardPlugin
=
require
(
'hard-source-webpack-plugin'
)
// 使用缓存,优化启动速度
// const SpeedMeasurePlugin = require('speed-measure-webpack-plugin')
// const SpeedMeasurePlugin = require('speed-measure-webpack-plugin')
const
SentryWebpackPlugin
=
require
(
'@sentry/webpack-plugin'
)
const
SentryWebpackPlugin
=
require
(
'@sentry/webpack-plugin'
)
// const CopyDir = require('./plugins/copyDir')
// const CopyDir = require('./plugins/copyDir')
// const AsyncRomveDir = require('./plugins/removeDir')
// const AsyncRomveDir = require('./plugins/removeDir')
const
{
resolve
:
assets
}
=
require
(
'path'
)
const
{
resolve
:
assets
}
=
require
(
'path'
)
...
@@ -59,6 +60,7 @@ module.exports = {
...
@@ -59,6 +60,7 @@ module.exports = {
publicPath
,
// 根据你的实际情况更改这里
publicPath
,
// 根据你的实际情况更改这里
// outputDir: 'copyDirTarget',
// outputDir: 'copyDirTarget',
lintOnSave
:
false
,
lintOnSave
:
false
,
productionSourceMap
:
true
,
// 配置SourceMap
devServer
:
{
devServer
:
{
// publicPath, // 和 publicPath 保持一致
// publicPath, // 和 publicPath 保持一致
https
:
false
,
https
:
false
,
...
@@ -122,20 +124,20 @@ module.exports = {
...
@@ -122,20 +124,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