Created
December 5, 2019 19:04
-
-
Save grakic/87a055d3a8eff8cdf179df5d3f277d71 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const webpack = require('webpack'); | |
const SentryCliPlugin = require('@sentry/webpack-plugin'); | |
module.exports = { | |
entry: './src/index.js', | |
target: 'webworker', | |
mode: 'production', | |
output: { | |
path: __dirname + '/dist', | |
publicPath: 'dist', | |
filename: 'worker.js', | |
sourceMapFilename: 'worker.js.map' | |
}, | |
optimization: { | |
minimize: false, | |
}, | |
performance: { | |
hints: false, | |
}, | |
devtool: 'source-map', | |
plugins: [ | |
new webpack.DefinePlugin({ | |
SENTRY_DSN: JSON.stringify(process.env.SENTRY_DSN), | |
RELEASE: JSON.stringify(process.env.RELEASE) | |
}), | |
new SentryCliPlugin({ | |
include: './dist', | |
ignore: ['node_modules', 'webpack.config.js', 'webpack.prod.js'], | |
validate: true, | |
release: process.env.RELEASE, | |
stripPrefix: ['webpack:///',] | |
}) | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment