Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
I use this code for bundling & minification for javascript and css. When I upgrade my Umbraco Version (9.3.1) to 9.4.3 I get this error:
using Umbraco.Cms.Core.Composing; using Umbraco.Cms.Core.WebAssets; namespace UmbracoProject.Components { public class Bundle : IComponent { private readonly IRuntimeMinifier _runtimeMinifier; public Bundle(IRuntimeMinifier runtimeMinifier) => _runtimeMinifier = runtimeMinifier; public void Initialize() { _runtimeMinifier.CreateJsBundle("inline-js-bundle", BundlingOptions.NotOptimizedAndComposite, new[] { "~/scripts/myScript1.js", "~/scripts/myScript2.js" }); _runtimeMinifier.CreateCssBundle("inline-css-bundle", BundlingOptions.NotOptimizedAndComposite, new[] { "~/css/mystylesheet.css" }); } public void Terminate() { } } public class MyComposer : ComponentComposer<Bundle> { } }
Any tips?
Josefine
I have the same problem when upgrading from 9.3.1 to 9.5
Hi Josefine and Hans,
Which settings do you have for https://our.umbraco.com/documentation/Reference/V9-Config/RuntimeMinificationSettings/
And
https://our.umbraco.com/documentation/Reference/V9-Config/HostingSettings/
Dave
Hi Dave!
I'm using
"RuntimeMinification": { "UseInMemoryCache": false, "CacheBuster": "AppDomain" }
and
"Hosting": { "Debug": false }
Hi Hans,
Could you set useInMemoryCache to true ?
Hi Dave,
Wow now it worked like a charm. No errors during upgrade from 9.3.1 to 9.5.0.
Thank you very much Dave!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Error when upgrade Umbraco 9 "The bundle name inline-js-bundle already exists.."
I use this code for bundling & minification for javascript and css. When I upgrade my Umbraco Version (9.3.1) to 9.4.3 I get this error:
Any tips?
Josefine
I have the same problem when upgrading from 9.3.1 to 9.5
Hi Josefine and Hans,
Which settings do you have for https://our.umbraco.com/documentation/Reference/V9-Config/RuntimeMinificationSettings/
And
https://our.umbraco.com/documentation/Reference/V9-Config/HostingSettings/
Dave
Hi Dave!
I'm using
and
Hi Hans,
Could you set useInMemoryCache to true ?
Dave
Hi Dave,
Wow now it worked like a charm. No errors during upgrade from 9.3.1 to 9.5.0.
Thank you very much Dave!
is working on a reply...