Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9164331
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T14:39:25+00:00 2026-06-17T14:39:25+00:00

I have Font Awesome, Less, Twitter Bootstrap and MVC4 all working nice together in

  • 0

I have Font Awesome, Less, Twitter Bootstrap and MVC4 all working nice together in debug mode.

When I deploy and remove debug from the compilation node of the web.config, the MVC4 bundling and minification kicks in.

When I browse my site when deployed like this, the font awesome icons no longer work.

Doing a view source to get the content bundle for Bootstrap gives me this HTML:

<link href="/Content/bootstrap?v=q6mwz5qEMtOzVPXqIVuZ8Z6LtMFDC3_UV0F5pQm5Gfg1" rel="stylesheet"/>

Taking the URL and sticking in the browser I can get the minified code:

@import"reset.less";@import"variables.less";@import"mixins.less";@import"scaffolding.less";@import"grid.less";@import"layouts.less";@import"type.less";@import"code.less";@import"forms.less";@import"tables.less";@import"font-awesome.less";@import"dropdowns.less";@import"wells.less";@import"component-animations.less";@import"close.less";@import"buttons.less";@import"button-groups.less";@import"alerts.less";@import"navs.less";@import"navbar.less";@import"breadcrumbs.less";@import"pagination.less";@import"pager.less";@import"modals.less";@import"tooltip.less";@import"popovers.less";@import"thumbnails.less";@import"media.less";@import"labels-badges.less";@import"progress-bars.less";@import"accordion.less";@import"carousel.less";@import"hero-unit.less";@import"utilities.less";@import"variables.less";@import"mixins.less";@import"responsive-utilities.less";@import"responsive-1200px-min.less";@import"responsive-768px-979px.less";@import"responsive-767px-max.less";@import"responsive-navbar.less";

I have a couple of other CSS bundles as well, none of them show any errors when viewed like above.

When I look at the font-awesome.less file in my Visual Studio 2012 project, there are a number of errors that VS thinks it has. Remember Font Awesome icons show up fine in debug, so I don’t think there are really errors.

The first one is on: @fontAwesomePath: ‘../font’;

The path is correct I think (works in debug anyway), but VS tells me fontAwesomePath is not a known @ directive.

There are numerous other errors that VS think exist as well, but again, font awesome works in debug mode.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T14:39:26+00:00Added an answer on June 17, 2026 at 2:39 pm

    I ran into a similar problem with TinyMCE. When MVC packages the javascript into a bundle the resulting javascript threw an exception.

    BundleTable.EnableOptimizations = false;
    

    If you put that line in your RegisterBundles function in the BundleConfig class, that will turn off the bundle and let your site work in production. It won’t minimize your javascript automatically but at least stuff will start working.

    You could them minimize each javascript file manually to get the smallest footprint and hopefully find your problematic js file.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have one font working fine in both IE8 and IE9 and all other
I am using Font-Awesome which is iconic font for use with Twitter Bootstrap. Markup
I want to replace some headers by images, so I would have nice font.For
I am using bootstrap-sass and the font-awesome ( https://github.com/littlebtc/font-awesome-sass-rails ) gems. I would like
I have font-lock mode on by putting (global-font-lock-mode 1) in .emacs. And, with font-lock
We have recently developed a website with a strong reliance on Font Awesome as
I would like to use less with twitter-bootstrap-rails gem, but i receiving Failed to
Anyone know why CSS provides color for text, but does not have font-color or
How do you have different font sizes in a selects option in HTML4 <option
My table cells have a font-size of 9pt. Within these table cells there is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.