Commit 0f29c6eb authored by 郝聪敏's avatar 郝聪敏

feature: 添加sentry配置文件

parent 605a9e1a
module.exports = {
// Sentry options are required
organization: 'sentry',
project: 'quantum-blocks',
apiKey: '2e7e0678d81d4542b09cdbc35812f1cbb07a4993cd13435ba49d9511be11ec95',
// Release version name/hash is required
release: 'quantum-blocks@0.0.1',
baseSentryURL: 'http://sentry.quantgroups.com/api/0',
deleteAfterCompile: true,
include: /js\//, // 只上传js和map文件
ignore: ['node_modules'],
suppressErrors: true,
filenameTransform(filename) {
return '~/' + filename;
},
};
...@@ -2,7 +2,7 @@ import { Vue, Component, Prop } from 'vue-property-decorator'; ...@@ -2,7 +2,7 @@ import { Vue, Component, Prop } from 'vue-property-decorator';
import cherryUi from '@qg/cherry-ui'; import cherryUi from '@qg/cherry-ui';
import Raven from 'raven-js'; import Raven from 'raven-js';
import RavenVue from 'raven-js/plugins/vue'; import RavenVue from 'raven-js/plugins/vue';
import { release } from '@/.sentryclirc.js'; import { release } from '@/.sentryclirc';
import '@qg/cherry-ui/dist/cherry.css'; import '@qg/cherry-ui/dist/cherry.css';
Vue.use(cherryUi); Vue.use(cherryUi);
......
...@@ -3,7 +3,7 @@ import iView from 'iview'; ...@@ -3,7 +3,7 @@ import iView from 'iview';
import cherryUi from '@qg/cherry-ui'; import cherryUi from '@qg/cherry-ui';
import Raven from 'raven-js'; import Raven from 'raven-js';
import RavenVue from 'raven-js/plugins/vue'; import RavenVue from 'raven-js/plugins/vue';
import { release } from '@/.sentryclirc.js'; import { release } from '@/.sentryclirc';
import VueContextMenu from '@editor/component/Contextmenu/index'; import VueContextMenu from '@editor/component/Contextmenu/index';
import localStorage from '@/service/localStorage.service'; import localStorage from '@/service/localStorage.service';
import 'iview/dist/styles/iview.css'; import 'iview/dist/styles/iview.css';
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
const path = require('path'); const path = require('path');
const SentryPlugin = require("webpack-sentry-plugin"); const SentryPlugin = require("webpack-sentry-plugin");
const resolve = filepath => path.resolve(__dirname, filepath); const resolve = filepath => path.resolve(__dirname, filepath);
const SentryConfig = require("./app/web/.sentryclirc.js"); const SentryConfig = require("./app/web/.sentryclirc");
module.exports = { module.exports = {
entry: { entry: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment