madskristensen / WebEssentials2013

Visual Studio extension
http://vswebessentials.com
Other
944 stars 252 forks source link

Renaming minified and bundled files. #1672

Open LarterStyles opened 9 years ago

LarterStyles commented 9 years ago

If I rename a JavaScript file, the minified file isn't renamed accordingly. Similarly, if I rename a JavaScript file that's included as part of a bundle., the .bundle file isn't updated with the file's new name.

FYI: I'm using web forms project with Visual Studio 2013 Update 4 + the latest WE update.

Examples below:

original

renamed

AkosLukacs commented 9 years ago

A workaround: after rename, delete the old.min.js and old.min.js.map files, and resave the bundle or minified file.

robvon commented 9 years ago

I don't believe that the workaround above works in Vs2013. I suspect WebEssentials is monitoring the name of each '.bundle' file. If you change it - it fails to trigger the bundle process. Perhaps a file-watcher is being used utilised but not to watch renames...

Just reload the solution and WebEssentials spots the .bundle files correctly. Its not like you have to rename them often.