From 8452b1020d412335b8eb7ef52726840d2640f097 Mon Sep 17 00:00:00 2001 From: seklyza Date: Fri, 7 Jul 2017 14:23:23 +0300 Subject: [PATCH] Exclude sourcemaps from production build --- packages/react-scripts/config/webpack.config.prod.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/react-scripts/config/webpack.config.prod.js b/packages/react-scripts/config/webpack.config.prod.js index f943ef9ecec..a4410e8d6f0 100644 --- a/packages/react-scripts/config/webpack.config.prod.js +++ b/packages/react-scripts/config/webpack.config.prod.js @@ -60,9 +60,6 @@ const extractTextPluginOptions = shouldUseRelativeAssetPaths module.exports = { // Don't attempt to continue if there are any errors. bail: true, - // We generate sourcemaps in production. This is slow but gives good results. - // You can exclude the *.map files from the build during deployment. - devtool: 'source-map', // In production, we only want to load the polyfills and the app code. entry: [require.resolve('./polyfills'), paths.appIndexJs], output: {