Questions tagged [asp.net-bundling]

74 questions
2
votes
1 answer

Is there a way to change Bootstrap's theme colours at runtime?

I have an ASP.NET MVC web application for which I am planning to use Bootstrap (as it is part of the default MVC template). I understand that it is pretty trivial to customise bootstrap to look however I want, and how to override the theme colours…
Ben
  • 4,915
  • 7
  • 40
  • 57
2
votes
0 answers

When does bundling and minification happen AppStart/FirstRequest

We are using ASP.NET MVC 4.5 for our website. We are tracking down some page load issues for our website and wanted to know when does bundling and minification happen. When I register bundle in my application start bundles.Add(new…
2
votes
0 answers

Bundling & Minification generate source map

I'm trying to find out if there is a mechanism in ASP.NET's Bundling & Minification that would generate a source map when you are doing on the fly minification of SCSS. I can't find any reference to something like that being available, but I wanted…
2
votes
0 answers

Bundling CSS ad JS when global.asax is inhering the implementation from a class library

In my ASP.NET Webforms project, my global.asax inherits it's implementation from a class library. Now I would like to implement Bundling and magnification of JS and CSS for my Web project. Few options that I can think of Create a common shared…
HaBo
  • 12,509
  • 34
  • 102
  • 191
2
votes
1 answer

How to unit test ASP.NET bundles

I tried following this answer about testing unit tests but when I try to enumerate the files in the bundle to test, I always get count zero. What's the problem with the following code? [TestFixture] public class BundleConfigTests { private…
Fabio Milheiro
  • 7,239
  • 13
  • 51
  • 87
1
vote
1 answer

How to bundle an backbone application

We have a backbone application with require.js for loading js, while loading this application on chrome it takes around 30 seconds to load the page completely. On inspecting the network tab I found that the stalled time is actually the one which is…
1
vote
0 answers

Why does ASP.net give errors when trying to minify CSS files for common frameworks such as Bootstrap?

I'm working on an ASP.net web app. I needed to make some changes to the CSS, but I ended up having to jump thru some hoops because the previous developer who worked on the app had minified all the CSS files in the source repo. I decided to make…
Vivian River
  • 28,530
  • 54
  • 179
  • 298
1
vote
1 answer

Cannot access JavaScript files inside View folder in ASP.NET MVC

I am trying to add AngularJS in my mvc project. This is my bundle config public static void RegisterBundles(BundleCollection bundles) { bundles.Add(new ScriptBundle("~/bundles/jquery").Include( …
Pein
  • 371
  • 1
  • 6
  • 21
1
vote
1 answer

Failed to decode downloaded font-- After Bundling in Umbraco Asp.net

I did Bundling of my scripts and Styles yesterday when I upload my website on azure as a dev branch then I am facing Warnings of fonts (Failed to decode downloaded font) You may see here. In my web.config I had this static content
1
vote
0 answers

Nested application ignores bundles

I'm trying to run my ASP.NET MVC 5.2.3.0 application as nested application so that I can access it as a subfolder, like http://example.com/my-application. I've added it to an existing application by choosing Add Application a chosen separate…
Denys Denysenko
  • 6,589
  • 1
  • 18
  • 30
1
vote
1 answer

Font path change to relative when loaded from bundle

I have bundled plugins css file as StyleBundle adminArea = new StyleBundle("~/files/css/admin/common"); adminArea.Include("~/assets/global/plugins/font-awesome/css/font-awesome.css"); as font awesome uses its font which is located in its…
1
vote
1 answer

In ASP.NET MVC 5 app, the bundled css is not reflecting the original css file

I have a css style sheet file which I have modified as per my style needs. But when the file is bundled using ASP.NET bundling, the changes I made are not reflected in the minified css file. I have set, BundleTable.EnableOptimizations = true; in…
Rizan Zaky
  • 3,172
  • 3
  • 18
  • 34
1
vote
2 answers

Finding a better way for Javascript bundling and loading

I am using asp.net mvc 5. I have made various bundles on server like below as each page needs different set of files. bundles.Add(new Bundle("~/scripts/external/4") .Include( "~/Static/Scripts/External/jquery-2.1.3.min.js", …
1
vote
0 answers

Web API configurations work in debug but not in iis

I'm making a Web API project and I'm using iis. I made the project and then I needed to add bundling to it. I used system.web.optimization file and webgreas DLLs from the default MVC project that is created by visual studio. There was an error for…
Yuval Eliav
  • 117
  • 2
  • 17
1
vote
0 answers

Azure CDN, .Net Bundling and Version String

In the out of the box .Net bundling calculates a version string, my guess is from a hash of the files in the bundles, thus if a file changes, the version string changes, and the cache gets busted. I'm trying to utilize bundling and Azure CDN, but it…
TWilly
  • 4,595
  • 3
  • 37
  • 70