I had to abandon some old Umbraco systems as I couldn't get them to upgrade, so now I'm starting from scratch once more, this time with a copy of the latest 7.10.4.
I can't get the build-in bundling code to automatically update the bundles when the referenced CSS or JS files change - the only way I can do it is by creating a new referenced file with a different name and copying all the content over into that. That does work, but is not very useful.
I've tried everything I can think of to get the bundles to update - recycle the app pool, restart the server, republish the entire site... nothing works.
Can anyone tell me how to get this simple thing to work? I'm using the straight downloaded zip file as my VS is all Core 2.0 and this doesn't sit well with it.
If you are using Client Dependency, you will just need to increment your Client Dependency version number. You can find it in ~/Config/ClientDependencyVersion.config
Perfect - that works, thanks. I kind of expected it to do automagically, and I couldn't find the setting. The file's called "ClientDependency.config" in my system, and incrementing that number does the job - thanks!
For those who are, like me, on Visual Studio without a built server: I am using a simple gulp script which will update ClientDependency version on each build. This should work in Umbraco version 7 & 8.
How to force rebundling
I had to abandon some old Umbraco systems as I couldn't get them to upgrade, so now I'm starting from scratch once more, this time with a copy of the latest 7.10.4.
I can't get the build-in bundling code to automatically update the bundles when the referenced CSS or JS files change - the only way I can do it is by creating a new referenced file with a different name and copying all the content over into that. That does work, but is not very useful.
I've tried everything I can think of to get the bundles to update - recycle the app pool, restart the server, republish the entire site... nothing works.
Can anyone tell me how to get this simple thing to work? I'm using the straight downloaded zip file as my VS is all Core 2.0 and this doesn't sit well with it.
Hi
If you are using Client Dependency, you will just need to increment your Client Dependency version number. You can find it in
~/Config/ClientDependencyVersion.config
Kind regards
Paul
Perfect - that works, thanks. I kind of expected it to do automagically, and I couldn't find the setting. The file's called "ClientDependency.config" in my system, and incrementing that number does the job - thanks!
For those who are, like me, on Visual Studio without a built server: I am using a simple gulp script which will update ClientDependency version on each build. This should work in Umbraco version 7 & 8.
Here is my gulp.js:
is working on a reply...