diff --git a/bin/cheminfo-build.js b/bin/cheminfo-build.js
index <HASH>..<HASH> 100755
--- a/bin/cheminfo-build.js
+++ b/bin/cheminfo-build.js
@@ -105,6 +105,7 @@ webpack(webpackConfig, function (err, stats) {
 
 function doMinify() {
     webpackConfig.devtool = 'source-map';
+    webpackConfig.output.devtoolModuleFilenameTemplate = 'webpack:///' + (pkg.name || '') + '/[resource-path]';
     webpackConfig.output.filename = filename + '.min.js';
     webpackConfig.plugins.push(new webpack.optimize.UglifyJsPlugin({
         minify: true
build: add a level of hierarchy to the source map folder

Allows to have multiple bundles in the same page