Questions tagged [asp.net-bundling]

74 questions
9
votes
0 answers

Run-time bundling of ES6 modules in ASP.NET MVC

Are there any existing solutions for run-time bundling of ES6 modules? I'm looking to simplify JavaScript code development in a MVC5 web app. We're having issues with large, unwieldy JS files, so I'm hoping to get a module loader system in place. …
Ken
  • 814
  • 9
  • 24
9
votes
1 answer

Is there a way to update asp.net mvc bundle contents dynamically at run-time?

I'm ASP.NET MVC v4 for my application, and I'm using the web optimization features (bundling and minification of scripts and styles). Now, what I understand is (please correct me if wrong), the optimization framework will look at the included files…
7
votes
0 answers

Is it right that ASP.NET bundles get generated on every request?

We hit a performance issue recently that highlighted something that I need to confirm. When you include a bundle like this: @Scripts.Render("~/jquery) This appears to be running through (identified using dotTrace, and seen it running through…
7
votes
1 answer

Transform Styles' Urls to CDN Urls in ASP.NET Bundling and Minification

Some of my styles use url(../img/sprites/main_sprite.png) to local resources in development and stage. However in production I use CDN and all my static resources are on it. Is it possible to transform bundles so that all urls in .css are replaced…
6
votes
1 answer

Migrating ASP.NET MVC 5 bundling "versions" to MVC 6

The bundling feature is excluded from MVC 6 and the suggested method is to do bundling using gulp tasks. Using bundling we used to get a random string at the end of the included css/javascript file url(s). This string was very important because once…
6
votes
3 answers

Javascript bundling in another folder

How can I have JavaScript bundling working from another folder (aside from the Script folder). If I do this: bundles.Add(new ScriptBundle("~/bundles/search").Include("~/Views/Search/*.js")); The browser tells me the javascript file can't be found.…
PoeHaH
  • 1,818
  • 3
  • 24
  • 49
4
votes
1 answer

Does ASP.NET store bundled scripts in memory?

When I create a script bundle using Microsoft Web Optimization (bundling and minification for ASP.NET and MVC), does the server keep a copy of the bundle in memory? Or does it read from disk each time it gets a request to create the bundle? Read a…
4
votes
2 answers

visual studio 2015 minify "access to path bundleconfig.json denied"

The issue is that when I right-click "Minify File", instead of minifying, Visual Studio gives me this error: "access to path bundleconfig.json denied". I'm sure it is something simple that I'm missing.
4
votes
1 answer

how do i know most used javascript and css files?

How do I know what are all the Javascript and CSS files is called by the clients from IIS server? Can this be done via httpmodule? Basically what I want to know is that when the client is accessing the server i want to know what are the files that…
3
votes
2 answers

How to bundle js files in asp.net?

I have a angular application with lot of js files , how can I bundle all those files. Every where I see in web , they suggest to use BundleConfig to bundle js files but I'm using empty web application template in asp.net . How to bundle js files in…
3
votes
1 answer

"Collection was modified" error attempting to Enumerate Files in a Bundle

I am getting a tricky error on an MVC page that only occurs when multiple users are on the site. The error I get is Collection was modified; enumeration operation may not execute. The error occurs on the line that attempts to render a javascript…
KiwiPyc
  • 31
  • 3
3
votes
1 answer

ASP.NET bundles are not cached in chrome

I have an asp.net mvc site that runs on umbraco and uses asp.net bundling to bundle css and js files. But the bundles don't get cached in chrome and it reloads them every time. I tried IE, Opera and Firefox and they all cache the bundles fine. Here…
Amila
  • 2,577
  • 1
  • 23
  • 30
2
votes
1 answer

Get updated JS file after bundling

I am creating an ASP.Net MVC application. I have added a bundle for javascript files as below. bundles.Add(new ScriptBundle("~/Content/surveyJS").Include( "~/Content/javascript/jquery-3.0.0.js", …
2
votes
0 answers

ASP.net MVC bundle minficiation duplicate variable name conflict

I am receiving a JavaScript error due to the ASP.net bundle functionality, the JS code works fine before it gets minified but not after. The issue Is have a isSelected variable that contains a boolean. But when the code gets minified it shortens…
2
votes
0 answers

javascript e.native what does this mean?

So i am using Chart.js in an asp.NET web application which is a 3rd party library and when i attempt to bundle i get following in dev tools: /* Minification failed. Returning unminified contents. (10,62600-62606): run-time error JS1137: 'native' is…
Maxqueue
  • 1,309
  • 1
  • 12
  • 35
1
2 3 4 5