From f211bb625ed21d8daad9bb15f14bb3f994917b00 Mon Sep 17 00:00:00 2001 From: Xing Date: Fri, 1 Jul 2016 09:33:27 -0700 Subject: [PATCH] Make source map files generated correctly. https://github.com/webpack/extract-text-webpack-plugin/issues/119 --- config/webpack.dev.js | 2 +- config/webpack.prod.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/webpack.dev.js b/config/webpack.dev.js index e5a8b1c5..1c553394 100644 --- a/config/webpack.dev.js +++ b/config/webpack.dev.js @@ -80,7 +80,7 @@ module.exports = webpackMerge(commonConfig, { * * See: http://webpack.github.io/docs/configuration.html#output-sourcemapfilename */ - sourceMapFilename: '[name].map', + sourceMapFilename: '[file].map', /** The filename of non-entry chunks as relative path * inside the output.path directory. diff --git a/config/webpack.prod.js b/config/webpack.prod.js index 3c5d8c3d..0050734f 100644 --- a/config/webpack.prod.js +++ b/config/webpack.prod.js @@ -72,7 +72,7 @@ module.exports = webpackMerge(commonConfig, { * * See: http://webpack.github.io/docs/configuration.html#output-sourcemapfilename */ - sourceMapFilename: '[name].[chunkhash].bundle.map', + sourceMapFilename: '[file].map', /** * The filename of non-entry chunks as relative path