Commit 400ae7b4 by 张立顺

屏蔽sentry上传

1 parent c81b43d7
......@@ -122,20 +122,20 @@ module.exports = {
)
config.plugins = [...config.plugins, ...plugins]
// sentry 配置
process.env.NODE_ENV === 'production' &&
Object.assign(config, {
plugins: [
...config.plugins,
new SentryWebpackPlugin({
// webpack specific configuration
release: '0.0.1',
include: './dist', // 需要上传到sentry服务器的资源目录,会自动匹配js 以及map文件
ignore: ['node_modules', 'vue.config.js'], // 忽略文件目录,当然我们在inlcude中制定了文件路径,这个忽略目录可以不加
configFile: '.sentryclirc',
urlPrefix: '~/dj-carlife-web/'
})
]
})
// process.env.NODE_ENV === 'production' &&
// Object.assign(config, {
// plugins: [
// ...config.plugins,
// new SentryWebpackPlugin({
// // webpack specific configuration
// release: '0.0.1',
// include: './dist', // 需要上传到sentry服务器的资源目录,会自动匹配js 以及map文件
// ignore: ['node_modules', 'vue.config.js'], // 忽略文件目录,当然我们在inlcude中制定了文件路径,这个忽略目录可以不加
// configFile: '.sentryclirc',
// urlPrefix: '~/dj-carlife-web/'
// })
// ]
// })
},
// 默认设置: https://github.com/vuejs/vue-cli/tree/dev/packages/%40vue/cli-service/lib/config/base.js
chainWebpack: config => {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!