Skip to content

Commit

Permalink
Change source map type (#4230)
Browse files Browse the repository at this point in the history
* Change source map type
  • Loading branch information
FrederikBolding authored Dec 8, 2021
1 parent be97dc2 commit 1e2bd04
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions webpack_config/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const TargetEnv = process.env.TARGET_ENV || PRODUCTION;
module.exports = merge.smart(common, {
mode: 'production',

devtool: 'cheap-module-source-map',
devtool: 'source-map',

output: {
path: path.join(config.path.output, 'web'),
Expand All @@ -39,10 +39,7 @@ module.exports = merge.smart(common, {
plugins: [
// The EnvironmentPlugin is shorthand for using the DefinePlugin on process.env keys.
// https://webpack.js.org/plugins/environment-plugin/
new webpack.EnvironmentPlugin([
'TARGET_ENV',
'COMMIT_HASH'
]),
new webpack.EnvironmentPlugin(['TARGET_ENV', 'COMMIT_HASH']),

new MiniCSSExtractPlugin({
filename: `[name].[contenthash].css`
Expand Down

0 comments on commit 1e2bd04

Please sign in to comment.