Skip to content

Commit

Permalink
enhance(source-map): enable source-map in dev
Browse files Browse the repository at this point in the history
emable source map generation by default in develpmont mode

fix #1
  • Loading branch information
nikhilnayyar002 committed Aug 14, 2021
1 parent f102b42 commit d3bafaf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ module.exports = {
asyncVendorChunkMinSize: 1024, // https://github.com/webpack/webpack/issues/13768
dev: {
clientIPAddresses: getClientIPAddresses(clientPort, devHttpsMode),
sourceMaps: false,
sourceMaps: true,
hmr: hotModuleReload,
devServer: {
host: '0.0.0.0',
Expand Down
2 changes: 1 addition & 1 deletion webpack.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ const o3 = merge(o2, {
filename: '[name].bundle.js',
chunkFilename: '[id].chunk.js',
},
devtool: wConfig.dev.sourceMaps ? "inline-source-map" : false,
devtool: wConfig.dev.sourceMaps ? "eval-source-map" : false,
devServer: wConfig.dev.devServer,
plugins: [
new EventHooksPlugin({
Expand Down

0 comments on commit d3bafaf

Please sign in to comment.