@@ -38,24 +38,24 @@ module.exports = (env, params = {}) => {
38
38
buildNumber = plistData . match ( / < k e y > C F B u n d l e V e r s i o n < \/ k e y > [ \s \n ] * < s t r i n g > ( [ 0 - 9 ] * ) < \/ s t r i n g > / ) [ 1 ] ;
39
39
}
40
40
config . resolve . symlinks = false ;
41
- // config.devtool = false;
42
- // config.plugins.push(
43
- // new webpack.SourceMapDevToolPlugin({
44
- // append: `\n//# sourceMappingURL=${SENTRY_PREFIX}[file].map`,
45
- // filename: join(SOURCEMAP_REL_DIR, '[file].map')
46
- // })
47
- // );
48
- // config.plugins.push(
49
- // new SentryCliPlugin({
50
- // release: appVersion,
51
- // urlPrefix: SENTRY_PREFIX,
52
- // rewrite: true,
53
- // cleanArtifacts: true,
54
- // release: `${nconfig.id}@${appVersion}+${buildNumber}`,
55
- // dist: `${buildNumber}.${platform}`,
56
- // ignoreFile: '.sentrycliignore',
57
- // include: [dist, join(dist, SOURCEMAP_REL_DIR)]
58
- // })
59
- // );
41
+ config . devtool = false ;
42
+ config . plugins . push (
43
+ new webpack . SourceMapDevToolPlugin ( {
44
+ append : `\n//# sourceMappingURL=${ SENTRY_PREFIX } [file].map` ,
45
+ filename : join ( SOURCEMAP_REL_DIR , '[file].map' )
46
+ } )
47
+ ) ;
48
+ config . plugins . push (
49
+ new SentryCliPlugin ( {
50
+ release : appVersion ,
51
+ urlPrefix : SENTRY_PREFIX ,
52
+ rewrite : true ,
53
+ cleanArtifacts : true ,
54
+ release : `${ nconfig . id } @${ appVersion } +${ buildNumber } ` ,
55
+ dist : `${ buildNumber } .${ platform } ` ,
56
+ ignoreFile : '.sentrycliignore' ,
57
+ include : [ dist , join ( dist , SOURCEMAP_REL_DIR ) ]
58
+ } )
59
+ ) ;
60
60
return config ;
61
61
} ;
0 commit comments