Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Why does my browser import css rules from non-existent .less files when I include bootstrap.css

The only thing I included is

<link href="bootstrap/css/bootstrap.css" rel="stylesheet" type="text/css">

When I view the webpage in chrome development tool > styles, there are many css rules included from files

bootstrap/css/less/mixins/vendor-prefixes.less
bootstrap/css/less/normalize.less
bootstrap/css/less/scaffolding.less

But there is no such files in my file system, and I am unable to find these filenames in bootstrap.css .

like image 790
golopot Avatar asked Jun 11 '26 18:06

golopot


1 Answers

The Developer Tool is probabely reading the CSS Map by Bootstrap.

1) You can remove this map, bootstrap.css.map from your resources

2) You can disable it in the tool, Settings -> Sources -> Enable CSS source maps

Here is an introduction guide to source maps.

like image 185
webMan Avatar answered Jun 14 '26 12:06

webMan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!