Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
quantum-blocks
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ui
quantum-blocks
Commits
aa734ce9
Commit
aa734ce9
authored
Jan 13, 2021
by
郝聪敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 添加sentry打包插件
parent
0f29c6eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
9 deletions
+8
-9
package.json
package.json
+1
-1
webpack.config.js
webpack.config.js
+7
-8
No files found.
package.json
View file @
aa734ce9
...
...
@@ -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"
,
...
...
webpack.config.js
View file @
aa734ce9
...
...
@@ -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
){
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment