diff options
| author | 2021-01-21 21:26:18 +0000 | |
|---|---|---|
| committer | 2021-01-21 21:26:18 +0000 | |
| commit | 26a23bf6265b49f0b6fd93c28afdd30c1e01e746 (patch) | |
| tree | 228476adb27e4bbba4b33928c271201161b4d546 /webpack.config.js | |
| parent | Merge pull request #95 from python-discord/dependabot/npm_and_yarn/webpack-cl... (diff) | |
| parent | Adds Sentry Release Tags (diff) | |
Merge pull request #99 from python-discord/fix-sentry-sourcemaps
Diffstat (limited to 'webpack.config.js')
| -rw-r--r-- | webpack.config.js | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/webpack.config.js b/webpack.config.js index 93e7e9d..e24c8f1 100644 --- a/webpack.config.js +++ b/webpack.config.js @@ -6,13 +6,15 @@ if (process.env.NODE_ENV === "development") { require("dotenv").config(); } module.exports = { entry: "./src/index.tsx", - mode: process.env.NODE_ENV, + mode: process.env.NODE_ENV || "production", output: { path: path.resolve(__dirname, "build"), - filename: "[name].[contenthash].bundle.js", + filename: "[name].bundle.js", + sourceMapFilename: "[name].bundle.js.map", publicPath: "/", - devtoolModuleFilenameTemplate: "file:///" + path.resolve(__dirname, "[resource-path]?[loaders]") + devtoolModuleFilenameTemplate: "[resource-path]" }, + devtool: "source-map", optimization: { splitChunks: { chunks: 'all', |