The System.Web.Optimization namespace includes classes that support Content Delivery Networks (CDN) and the process of optimizing JavaScript and cascading style sheet (CSS) files in a website to reduce file size and improve page performance. The classes in this namespace enable developers to carry out bundling and minification tasks to optimize their JavaScript and CSS files.
Questions tagged [system.web.optimization]
81 questions
0
votes
2 answers
Loading an MVC JS bundle externally
I have a small JS library in my MVC 5 project that I want to be available for external users to load into their apps. At the moment I'm bundling it like so:
bundles.Add(new ScriptBundle("~/clientApi")
.IncludeDirectory("~/Api/clientapps/",…

LJW
- 2,378
- 1
- 21
- 35
0
votes
1 answer
bundling virtual paths in areas
I want to create a style bundle with following virtual path (plugin framework):
"~/Areas/Domain.PluginTest.Wui/Bundles/PluginCss"
When I go to that path I get an error stating that the file doesn't exist.
The Static file handler is trying to find a…

stephan.peters
- 963
- 13
- 35
0
votes
1 answer
ASP.NET MVC4 web optimizations doesnt minify or add cache buster on vanilla internet application
I'm looking at using web optimizations to minify and bundle js and css so I spun up a new vanilla mvc4 internet application in visual studio, set RELEASE mode and hit F5.
It doesn't seem to behave the way I was expecting. When I view source I see.
…

chrisp_68
- 1,731
- 23
- 41
0
votes
2 answers
I am trying to minifying javascript files using mvc4 bundle feature
I want to bundle all my JavaScript files so it should hit to server only once. But with this I am facing a problem.
bundles.Add(new ScriptBundle("~/LayoutJs").Include(
"~/Scripts/Libraries/jquery-1.8.2.min.js",
…

Prince Chopra
- 167
- 11
0
votes
1 answer
C# Web.Optimization Bundles and HTML5 cache Manifest
I am using ASP.NET optimization package to minify and bundle the scripts, and CSS files.
I am also developing a mobile UI for my ASP.NET application which uses a HTML5 cache manifest.
The optimization package updates the version of the dynamic…

sam360
- 1,121
- 3
- 18
- 37
0
votes
1 answer
Ambiguous reference between 'System.Web.WebPages.Scripts' and 'System.Web.Optimization.Scripts'
This may be a similar question, but since the other is not answered I thought I'd ask here. I have a mvc 4 application works fine on my local but when I deployed to my web host I got the following error
ambiguous reference between…

Ray
- 12,101
- 27
- 95
- 137