Bootstrap.css.map What is the use of this file. How to use it.
. ├──bootstrap.css ├──bootstrap.css.map ├──bootstrap.min.css ├──bootstrap-theme.css ├── Bootstrap-theme.css.map └──bootstrap-theme.min.css 0 directories, 6 files
Let me first say what the source map file is. The source map file is a JS file compression, the file's variable name to replace the corresponding, variable location, such as meta information data files, generally such files and min.js main files in the same directory. For example, after compressing the original variable is a map, after compression through the variable replacement rules may be replaced by a, then the source map file will record this mapping information, the advantage is that, in debugging, if there are some JS error, Then the browser will be resolved by parsing the map file to merge the compressed JS, so that developers can use uncompressed code before debugging, which will bring us great convenience. And this kind of restore debugging function, only Chorme has, so there will be the title said problem, I introduce jquery-1.10.2.min.js, under Firefox or other browsers is good, under chorme will be unable to find the error jquery-1.10.2.min.map file, 404, is because of the above, jquery will detect whether the browser support sour Ce map function, if support, then go to download the source map file, and this time if you are quoting the official website of the min.js that no problem, it will go to its own directory to find the source map file, And if the Jquery.min.js file on your server and the server does not have source map, it will be an error, so three solutions: one, quote official website file Two, the source map file download down to the server (recommended) three, The Chorme file tool--> Developer Tool--> settings-->enable source maps hook out, remove this hook, jquery will not download the source map file.