Skip to content

Commit

Permalink
refactor: don't append source map link to built files
Browse files Browse the repository at this point in the history
My post-receive script doesn't copy sourcemap files to the
`public/static` directory, so it's probably best not to reference them
(browser will try to fetch and print an error in the console).
  • Loading branch information
wincent committed Aug 14, 2024
1 parent 8350ea5 commit 15b3e72
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions webpack.production.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ module.exports = BUILDS.map(({name, filename, targets, terserOptions}) => {
),
}),
new webpack.SourceMapDevToolPlugin({
append: false,
noSources: false,
filename: '[file].map',
}),
Expand Down

0 comments on commit 15b3e72

Please sign in to comment.