From ecc30d801af3b205997b6803a632daee04af649a Mon Sep 17 00:00:00 2001 From: Jenny Lian Date: Mon, 24 Oct 2016 11:26:22 -0700 Subject: [PATCH 1/3] Webpack config file. Making dist webpack file sourcemap debuggable for end users who build on top of react-storybook. --- dist/server/config/webpack.config.prod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/server/config/webpack.config.prod.js b/dist/server/config/webpack.config.prod.js index 8a86f182c60d..45e4e3e4fc5c 100644 --- a/dist/server/config/webpack.config.prod.js +++ b/dist/server/config/webpack.config.prod.js @@ -12,7 +12,7 @@ exports.default = function () { var config = { bail: true, - devtool: '#cheap-module-source-map', + devtool: 'inline-source-map', entry: entries, output: { filename: 'static/[name].bundle.js', From abfed640a45090a19955c6b99ddeee12c50b5f8a Mon Sep 17 00:00:00 2001 From: Jenny Lian Date: Tue, 25 Oct 2016 10:42:36 -0700 Subject: [PATCH 2/3] Revert "Webpack config file." This change should not be in the dist directory as mnmtanish suggested. This reverts commit ecc30d801af3b205997b6803a632daee04af649a. --- dist/server/config/webpack.config.prod.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dist/server/config/webpack.config.prod.js b/dist/server/config/webpack.config.prod.js index 45e4e3e4fc5c..8a86f182c60d 100644 --- a/dist/server/config/webpack.config.prod.js +++ b/dist/server/config/webpack.config.prod.js @@ -12,7 +12,7 @@ exports.default = function () { var config = { bail: true, - devtool: 'inline-source-map', + devtool: '#cheap-module-source-map', entry: entries, output: { filename: 'static/[name].bundle.js', From 6dcbb63ecba92e9fe958cc0284f61e84852e4a02 Mon Sep 17 00:00:00 2001 From: Jenny Lian Date: Tue, 25 Oct 2016 10:57:28 -0700 Subject: [PATCH 3/3] adding inline-source-map to devtools of webpack.config --- src/server/config/webpack.config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/server/config/webpack.config.js b/src/server/config/webpack.config.js index 206938fbcc26..e253c4b45002 100644 --- a/src/server/config/webpack.config.js +++ b/src/server/config/webpack.config.js @@ -14,7 +14,7 @@ import babelLoaderConfig from './babel.js'; export default function () { const config = { - devtool: '#cheap-module-eval-source-map', + devtool: 'inline-source-map', entry: { manager: [ require.resolve('./polyfills'),