Skip to main content
5 votes

Bundling not working in Sitecore MVC

I just had this happen, the issue is that Sitecore is picking on the bundling URL. Need to add your /bundles/css to the IgnoreUrlPrefixes setting <setting name="IgnoreUrlPrefixes" value="/sitecore/...
Chris Auer's user avatar
  • 13.1k
5 votes
Accepted

Bundling and Minification not working after upgrade

You may need to create a Sitecore patch to ignore the url you're using in your bundle. Without that, Sitecore will try to resolve the url and give 404. You may be having this patch already in Sitecore ...
Ghan's user avatar
  • 667
4 votes
Accepted

What is the use of remove-module & IgnoreUrlPrefixes in bundling

Adding the remove attribute for the bundle Modules from the <modules> section of web config are processed and combined in top-down order (starting from the server-specific modules). Some ...
Marek Musielak's user avatar
  • 23.9k
4 votes

Sitecore MVC Bundling Optimization

Sorry for providing a single line answer. Here is what i did to get the optimization done : In my question, I had mentioned about the BundeOptimizations which I had created inheriting ...
Sreekrishnan's user avatar
4 votes
Accepted

Is there something in Sitecore 8.2 that breaks bundling?

Global.asax is private in 8.2. You will need to move your global.asax code to an initialization pipeline. Thats why your app_start code isn't running. namespace YourApp { public class Initialize ...
Chris Auer's user avatar
  • 13.1k
2 votes
Accepted

Using MS optimization bundles in extension sections

What we have in Global.asax (could be added to Initialize pipeline): BundleTable.Bundles..Add(new StyleBundle("~/bundles/someStyles").Include( "~/path to css 1", "~/path to ...
Anton's user avatar
  • 3,831
2 votes

Bundling not working in Sitecore MVC

ASP.NET MVC API includes StyleBundle class that does CSS minification and bundling. If it is not working, then there a few things which we need to check - Make sure all files exists as a physical ...
Mahendra Shekhawat's user avatar
2 votes
Accepted

Is there a way to add a cache buster to the RenderFormScripts Html helper function?

You can override IncludeFiles processor of forms.renderForm pipeline and add custom parameter for all the scripts (or styles). Class below adds DateTime.Now.Ticks to scripts only. You can use your own ...
Marek Musielak's user avatar
  • 23.9k
1 vote

BundleTransformer: AssetTranslationException Could not find factory

I am able to resolve this with the help of the Author @AndreyTaritsyn. You can find the answer below. As far as I understand, you control contents of the App_Start/JsEngineSwitcherConfig.cs file ...
Yeshwanth's user avatar
1 vote

Bundling and Minification not working after upgrade

You need to hook in to Sitecore 9's Initialize pipeline. Your code seems to suggest, you are relying on App_Start functionality. Described in more detail here: https://sitecore.stackexchange.com/a/...
Mark Cassidy's user avatar
  • 25.3k
1 vote
Accepted

How to set up Asset Bundling

Your guess was correct. You were missing patch:before statement. Your config should look like this: <initialize> <processor type="MySite.Project.MySite.Pipelines....
Peter Procházka's user avatar
1 vote

Bundling and Minification of Javascript and CSS files

However it is not recommended to keep your css and js files in sitecore media library but as you have already decided then you could use SquishIt libraries to bundle and minimize your css and js: ...
Sarthak Gupta's user avatar
1 vote

Bundling and Minification of Javascript and CSS files

Way 1: Use Module I can see this is an unconventional way to keep static files in Media Library but you can try below module if it can help as it performs magnification/bundling of js/css code added ...
Nikhil Kulkarni's user avatar

Only top scored, non community-wiki answers of a minimum length are eligible