markshapiro / webpack-merge-and-include-globally

Merge multiple files (js, css..) and include by running them "as is". Supports minify by custom transform and wildcard paths.
MIT License
102 stars 27 forks source link

pre-concatenation sourcemaps #35

Open tnsicdr opened 4 years ago

tnsicdr commented 4 years ago

Are there any options to source map back to the pre-concatenated files, so that instead of hitting vendor.js when debugging, it maps back to the pre-concatenated source instead.

redfox05 commented 4 years ago

I would like to know about this too. I have been spending all day trying to get the uglifyjs sourcemaps working and had to eventually use Terser instead, only to find that this would just be sourcemaps for the minified concatenated files, NOT the original pre-concatenation files.

Hopefully this can be done within webpack-merge-and-include-globally but theres been little response to other issues here, so if anyone can suggest an alternative webpack plugin to get this done, that would be appreciated.