Skip to content

Commit

Permalink
Merge pull request #599 from sjd78/sourcemaps
Browse files Browse the repository at this point in the history
Enable source maps for webpack dev mode
  • Loading branch information
mareklibra authored May 15, 2018
2 parents ffc5783 + b621ccf commit f1b2c83
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions config/webpack.config.dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ var webpackConfigCommons = require('./webpack.config.commons')
// It is focused on developer experience and fast rebuilds.
// The production configuration is different and lives in a separate file.
module.exports = {
// This makes the bundle appear split into separate modules in the devtools.
// We don't use source maps here because they can be confusing:
// https://github.com/facebookincubator/create-react-app/issues/343#issuecomment-237241875
// You may want 'cheap-module-source-map' instead if you prefer source maps.
devtool: 'eval',
// Integrate https://github.com/facebook/create-react-app/pull/924 here.
// You may want 'eval' instead if you prefer to see the compiled output in DevTools.
// See the discussion in https://github.com/facebookincubator/create-react-app/issues/343.
devtool: 'cheap-module-source-map',

// These are the "entry points" to our application.
// This means they will be the "root" imports that are included in JS bundle.
// The first two entry points enable "hot" CSS and auto-refreshes for JS.
Expand Down

0 comments on commit f1b2c83

Please sign in to comment.