最近我看到带有.js.map
扩展名的文件附带了一些JavaScript库(比如Angular),这只是我脑子里提出的几个问题:
.js.map
文件?angular.min.js.map
文件?.js.map
为我的JavaScript应用程序创建文件吗?angular.min.js.map
它充满了奇怪的格式化字符串,所以我认为它不是手动创建的.我最近在玩bootsrap3.我从源代码编译它,并将distr js和css包含在我的项目中.问题是,我在GH开发工具中看到,它正在尝试获取.map.css文件.为什么要这样做?如何禁用它?我需要禁用它吗?为了不在开发工具中添加错误标记,我添加了该映射文件,之后所有样式都显示为在较少的文件中定义,这对我没有多大帮助.
我正在运行rails4,bootstrap 3,我在终端中收到以下错误消息.
Started GET "/assets/bootstrap.css.map" for 127.0.0.1 at 2014-08-24 23:41:36 -0700
ActionController::RoutingError (No route matches [GET] "/assets/bootstrap.css.map"):
actionpack (4.1.4) lib/action_dispatch/middleware/debug_exceptions.rb:21:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/show_exceptions.rb:30:in `call'
railties (4.1.4) lib/rails/rack/logger.rb:38:in `call_app'
railties (4.1.4) lib/rails/rack/logger.rb:20:in `block in call'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `block in tagged'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:26:in `tagged'
activesupport (4.1.4) lib/active_support/tagged_logging.rb:68:in `tagged'
railties (4.1.4) lib/rails/rack/logger.rb:20:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/request_id.rb:21:in `call'
rack (1.5.2) lib/rack/methodoverride.rb:21:in `call'
rack (1.5.2) lib/rack/runtime.rb:17:in `call'
activesupport (4.1.4) lib/active_support/cache/strategy/local_cache_middleware.rb:26:in `call'
rack (1.5.2) lib/rack/lock.rb:17:in `call'
actionpack (4.1.4) lib/action_dispatch/middleware/static.rb:64:in `call'
rack (1.5.2) lib/rack/sendfile.rb:112:in …
Run Code Online (Sandbox Code Playgroud) 我需要使用最新的Bootstrap版本升级我正在使用的应用程序,但我正在努力弄清楚添加的bootstrap.css.map
是什么?
我需要让它们让css正常工作吗?
在写这篇文章之前我做了一些搜索但由于它相对较新,我没有遇到任何有形的解释.
以下是我使用的代码,这是我运行此文件时来自模板的代码,我看到错误
bootstrap.css.map:1 GET http://localhost:8000/css/bootstrap.css.map 404 (Not Found)
Run Code Online (Sandbox Code Playgroud)
但是我没有建立链接,错误显示链接在第一行,有人可以帮我链接在哪里吗
我如何删除该链接有人可以帮助我吗
<!DOCTYPE HTML>
<html lang="en">
<head>
<title>Animus A Blogging Category Flat Bootstarp Resposive Website Template | Home :: w3layouts</title>
<link href="css/bootstrap.css" rel="stylesheet" type="text/css" media="all">
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="Graphic Responsive web template, Bootstrap Web Templates, Flat Web Templates, Andriod Compatible web template,
Smartphone Compatible web template, free webdesigns for Nokia, Samsung, LG, SonyErricsson, Motorola web design" />
</head>
<body> …
Run Code Online (Sandbox Code Playgroud) 我想在网站上放一些 Bootstrap 代码,我找到了一些脚本,在文件中有.map
扩展名的文件。我不知道如何将它们上传到 HTML 文档中。我们使用以下标签从 HTML 文件连接 CSS 文件:
<link rel="stylesheet" type="text/css" href="/wp-content/themes/heatmap-adaptive.1.5.3/style.css"/>
Run Code Online (Sandbox Code Playgroud)
那么,如何使用 .map 做一些工作?
有这样名字的文件: bootstrap-theme.min.css.map