Reputation: 475
Hi I am trying to use LESS with bootstrap using the clientside js method of compiling to avoid using command line etc. I have included the latest version of LESS.js plus a link to the neccessary LESS files that come with bootstrap but when I load the page I get this error:
FileError: 'http://localhost/boyd/assets/less/bootstrap.less' wasn't found (404)
Here is the code used in the header:
<link rel="stylesheet/less" type="text/css" href="<?php echo get_template_directory_uri(); ?>/assets/less/variables.less" />
<script src="<?php echo get_template_directory_uri(); ?>/assets/js/less-1.4.1.min.js" type="text/javascript"></script>
Upvotes: 0
Views: 3238
Reputation: 5369
It may be caused by MIME types security at the IIS level. Make sure that your website in IIS manager has ".less" as a registered MIME type (open IIS manager, click your site in left tree panel, look for "MIME Types" item at the right pane, then click it).
If there is no ".less" registered, just add this as a "text/css", for example.
Upvotes: 3