Commit aa734ce9 authored by 郝聪敏's avatar 郝聪敏

fix: 添加sentry打包插件

parent 0f29c6eb
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
"backend": "nohup egg-scripts start --port 7001 --workers 4", "backend": "nohup egg-scripts start --port 7001 --workers 4",
"dev": "egg-bin dev -r egg-ts-helper/register", "dev": "egg-bin dev -r egg-ts-helper/register",
"debug": "egg-bin debug -r egg-ts-helper/register", "debug": "egg-bin debug -r egg-ts-helper/register",
"build": "easy build", "build": "easy build --devtool",
"tsc": "ets && tsc -p tsconfig.json", "tsc": "ets && tsc -p tsconfig.json",
"clean": "ets clean", "clean": "ets clean",
"kill": "easy kill", "kill": "easy kill",
......
...@@ -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"); const SentryConfig = require("./app/web/.sentryclirc.ts");
module.exports = { module.exports = {
entry: { entry: {
...@@ -60,13 +60,12 @@ module.exports = { ...@@ -60,13 +60,12 @@ module.exports = {
}] }]
}, },
{ imagemini: false }, { imagemini: false },
// { {
// sentry: { sentry: {
// name: 'webpack-sentry-plugin', name: 'webpack-sentry-plugin',
// args: SentryConfig args: SentryConfig
// } }
// } }
// new SentryPlugin(SentryConfig)
], ],
devtool:'source-map', devtool:'source-map',
customize(webpackConfig){ customize(webpackConfig){
......
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