Represents a bundle that does CSS minification.
Questions tagged [stylebundle]
9 questions
4
votes
2 answers
ASP.NET MVC: StyleBundle IncludeDirectory & CssRewriteUrlTransform
I have the same problem as many that my images are not resolved when I bundle my CSS-Stylesheets.
Now I found some SO-Answers that suggest using new CssRewriteUrlTransform() as second parameter for the "Include"-Method of a new StyleBundle-Object.…

NoRyb
- 1,472
- 1
- 14
- 35
3
votes
2 answers
is it possible to include Scripts and Styles in same Bundle ?(asp.net mvc5)
Attempting to use css and js files with same virtualpath bundle name
1 - is it possible ? (tried:but failed. cant define same virtual path name both for script and style)
2 - it it possible to builtup a ScriptAndStyleBundle together included…

Zen Of Kursat
- 2,672
- 1
- 31
- 47
3
votes
1 answer
MVC 4 Styles.Render & Scripts.Render Clarification
I'm using ASP.NET MVC 4 with Bootstrap and I've noticed that my project is a little bit different from a lot of articles and tutorials about "building your site with Bootstrap", they keep mention the use of minified files of Javascript and CSS…

Ron
- 1,744
- 6
- 27
- 53
3
votes
2 answers
Odd caching behaviour by browsers when using ASP.NET CSS Bundles
Im really to confused as to whats going on here.
It seems the (System.Web.Optimization.)Bundle library puts a filesystem watcher on all the files it has bundled up. Whenever there is a change (say for example I tweak the contents of a CSS file), it…

maxp
- 24,209
- 39
- 123
- 201
2
votes
1 answer
C# MVC StyleBundle and ScriptBundle do not render correct paths if project is run in subdirectory
I have this code in BundleConfig.cs which simply includes a script
bundles.Add(new ScriptBundle("~/bundles/ui-scripts").Include(
"~/Scripts/ui-scripts.js"));
On my locale machine (http://localhost:57210/) this renders out…

CyberProdigy
- 737
- 9
- 20
1
vote
0 answers
C# StyleBundle doesn't include linked files
VisualStudio 2019, I have two projects in a solution which essentially need to share a single CSS. I have the physical file added to project A, and then I added the same file as a "link" file in Project B. This way only 1 file needed to be…

LarryBud
- 990
- 9
- 20
1
vote
1 answer
What happens to ScriptBundle and StyleBundle in Asp.NET 5.0 vNEXT
In vNEXT, what happens to the bundling support via ScriptBundle and StyleBundle?
My understanding is that bower, grunt & co. will completely replace that mechanism?
Are there examples on how to do that?
What I've found is a nice intro by Scott Allen…

John
- 3,591
- 8
- 44
- 72
0
votes
3 answers
Icons not shown while using Bundling
I am using Bundling for my CSS and use that in my MVC Layout.cshtml page. The CSS files are included correctly but the icons are not shown properly.
Should i do something to include icons?
MY Bundle code
bundles.Add(new…

Madhu
- 2,416
- 3
- 15
- 33
-1
votes
1 answer
ASP.NET Web Forms - FontAwesome CDN Fallback Not Working
In my ASP.NET Web Forms project, i am using bundling and minification. I want to use Fontawesome CDN with fallback support but problem is that only CDN is working and as a fallback my downloaded local Fontawesome is not working.
I am using…

Creator
- 7
- 8