You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we are using Umbraco 10 including smidge for client side js and less/css bundling.
What we run into trouble is when changing any js file which is in a bundle we cannot access the "fresh" code in the browser ... it stys like the bundle was defined on startup.
So my question is how can we achive at least for development that any changes occur triggers a rebuild and we can access the new bundle?
Hi,
we are using Umbraco 10 including smidge for client side js and less/css bundling.
What we run into trouble is when changing any js file which is in a bundle we cannot access the "fresh" code in the browser ... it stys like the bundle was defined on startup.
So my question is how can we achive at least for development that any changes occur triggers a rebuild and we can access the new bundle?
Our code we use now on startup
`services.AddSmidge(_config.GetSection("smidge"));
services.Configure(options =>
{
string cachebuster = _config.GetSection("Umbraco:CMS:RuntimeMinification").GetValue("CacheBuster") ?? "AppDomain";
Type cacheBusterType = Enum.Parse(cachebuster) switch
{
RuntimeMinificationCacheBuster.AppDomain => typeof(AppDomainLifetimeCacheBuster),
RuntimeMinificationCacheBuster.Version => typeof(ConfigCacheBuster),
RuntimeMinificationCacheBuster.Timestamp => typeof(TimestampCacheBuster),
_ => throw new NotImplementedException(),
};
});`
Any suggestions welcome
Thanks
The text was updated successfully, but these errors were encountered: