shellscape / webpack-manifest-plugin

webpack plugin for generating asset manifests
MIT License
1.44k stars 184 forks source link

Added transformExtensions option for sourcemaps #4

Closed jordaaash closed 9 years ago

jordaaash commented 9 years ago

ManifestPlugin currently doesn't handle sourcemap assets properly. main.js.map and main.css.map will result in a single output key, main.map. This is caused by the expectation of only a single file extension.

This is probably not the best way to solve this, but it works with minimal code changes. The imageExtensions RegExp was also changed to handle this. Additional extensions can easily be added for other modifiers. The change also includes a passing test for

Note: this branch is based off of patch-1 (#3). I can change that and rebase if you like the PR but don't want to have to cherry pick around.

danethurber commented 9 years ago

awesome. thanks for the help