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

fix: 添加sentry打包插件

parent 0f29c6eb
......@@ -8,7 +8,7 @@
"backend": "nohup egg-scripts start --port 7001 --workers 4",
"dev": "egg-bin dev -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",
"clean": "ets clean",
"kill": "easy kill",
......
......@@ -2,7 +2,7 @@
const path = require('path');
const SentryPlugin = require("webpack-sentry-plugin");
const resolve = filepath => path.resolve(__dirname, filepath);
const SentryConfig = require("./app/web/.sentryclirc");
const SentryConfig = require("./app/web/.sentryclirc.ts");
module.exports = {
entry: {
......@@ -60,13 +60,12 @@ module.exports = {
}]
},
{ imagemini: false },
// {
// sentry: {
// name: 'webpack-sentry-plugin',
// args: SentryConfig
// }
// }
// new SentryPlugin(SentryConfig)
{
sentry: {
name: 'webpack-sentry-plugin',
args: SentryConfig
}
}
],
devtool:'source-map',
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