Skip to content

Commit

Permalink
Add SourceMaps to minified JS
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Jun 22, 2021
1 parent dcc9398 commit f39588b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions assets/webpack.config.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
const path = require('path')

module.exports = (env, options) => {
const devMode = options.mode !== 'production';

return {
entry: './js/phoenix/index.js',
output: {
Expand All @@ -14,7 +12,7 @@ module.exports = (env, options) => {
},
globalObject: 'this'
},
devtool: devMode ? 'source-map' : undefined,
devtool: 'source-map',
module: {
rules: [
{
Expand Down

0 comments on commit f39588b

Please sign in to comment.