Can someone tell me what reasons / Squishit triggers rebuild the package in production mode?
For example, if I create the following package, the file "Site.Master_ {GUID] .css" is created as expected.
<%= Bundle.Css() .Add("~/css/reset.css") .Add("~/css/typography.css") .Add("~/css/styles.css") .Add("~/MasterPages/Site.Master.css") .Render("~/Cache/Site.Master_#.css") %>
But if I delete the file with the file package, it will not be recreated. I discovered, through trial and error, that if I changed the web.config file to
<compilation debug="true" targetFramework="4.0" />
and then back to false
<compilation debug="false" targetFramework="4.0" />
the next time the page is requested, the package is rebuilt, but I would like to know:
a) how Squishit decides whether a particular site should be built or rebuilt
b) if there is a recognized way to reset Squishit to restore all packages - after clearing the cache or updating the site, for example.
Thanks.
source share