Fix source map generation in projects that also use ExtractTextPlugin

This commit is contained in:
SteveSandersonMS
2016-10-21 13:53:34 +01:00
parent e0c18ab269
commit a427d5f0f0
6 changed files with 6 additions and 6 deletions

View File

@@ -41,7 +41,7 @@ var clientBundleConfig = merge(sharedConfig(), {
].concat(isDevBuild ? [
// Plugins that apply in development builds only
new webpack.SourceMapDevToolPlugin({
filename: '[name].js.map', // Remove this line if you prefer inline source maps
filename: '[file].map', // Remove this line if you prefer inline source maps
moduleFilenameTemplate: path.relative(clientBundleOutputDir, '[resourcePath]') // Point sourcemap entries to the original file locations on disk
})
] : [