-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwebpack.config.js
48 lines (47 loc) · 1.24 KB
/
webpack.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
const path = require('path');
const UglifyJsPlugin = require('uglifyjs-webpack-plugin');
const SentryWebpackPlugin = require('@sentry/webpack-plugin');
module.exports = {
mode: 'production',
entry: ['./assets/js/app.js', './node_modules/datalist-polyfill/datalist-polyfill.min.js'],
output: {
path: path.resolve(__dirname, './assets/js'),
filename: 'bundle.min.js',
},
devtool: 'source-map',
optimization: {
minimizer: [
new UglifyJsPlugin({
sourceMap: true,
uglifyOptions: {
output: {
comments: false,
},
},
}),
],
},
plugins: [
new SentryWebpackPlugin({
include: '.',
ignoreFile: '.sentrycliignore',
ignore: [
'node_modules',
'.eslintrc.js',
'webpack.config.js',
'assets/js/app.js',
'assets/js/app.js.map',
'assets/js/elementBuilder.js',
'assets/js/elementBuilder.js.map',
'assets/js/eventChain.js',
'assets/js/eventChain.js.map',
'assets/js/helper.js',
'assets/js/helper.js.map',
'assets/js/localStorage.js',
'assets/js/localStorage.js.map',
'assets/css/acs.min.css.map',
],
configFile: 'sentry.properties',
}),
],
};