Skip to content

Commit

Permalink
Restricts the source maps generated for production
Browse files Browse the repository at this point in the history
This will generate source maps only to the extent required for stack
trace reporting tools like Sentry and Rollbar. It should result in build
time savings and prevent people's unobfuscated source code from
"leaking" with every production build. Fixes rails#769
  • Loading branch information
searls committed Sep 7, 2017
1 parent c76a64d commit 3bd2018
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion package/environments/production.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ module.exports = class extends Environment {

toWebpackConfig() {
const result = super.toWebpackConfig()
result.devtool = 'source-map'
result.devtool = 'nosources-source-map'
result.stats = 'normal'
return result
}
Expand Down

0 comments on commit 3bd2018

Please sign in to comment.