Where css less is executing from?

半腔热情 提交于 2019-12-23 02:01:30

问题


In my site I don't have any LESS code or such set up but there seem to be some CSS LESS generating in my site when I check in FireFox inspector but I don't know the cause of it. Things are being generated are like:

grid-framework.less | normalize.less | table.less | scaffolding.less

I can't unfortunately post all the code because is huge. So here are the CSS includes

<link href="css/bootstrap.min.css" rel="stylesheet">
<link href="css/myStyle.css" rel="stylesheet">
<link rel="stylesheet" href="css/font-awesome.css">

Script includes

<script src="js/jquery-3.1.0.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/lib/screenfull/screenfull.js"></script>


回答1:


It's coming from your .map file that LESS/SCSS/SASS creates once compiled. The purpose of this file is to give the original file location of the CSS styles for easier debugging and development.

You don't need it if you aren't using a compiler, but it is nice to have in the event you are.




回答2:


It's coming from a sourcemap reference at the end, which would look like this:

/*# sourceMappingURL=bootstrap.min.css.map */

The file it links to will contain encoded references to these less files.
Feel free to remove both the above line with the sourceMappingURL and the .map file it refers to, from your local folder.

If you're interested, here's a link explaining sourcemaps

sourcemaps explained



来源:https://stackoverflow.com/questions/41304709/where-css-less-is-executing-from

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!