小编use*_*710的帖子

禁用grunt中的livereload(yeoman)

当我运行grunt serve时,它会自动在index.html中注入以下代码.

<script src="http://x.x.x.x:35729/livereload.js?snipver=1" type="text/javascript"></script> 
Run Code Online (Sandbox Code Playgroud)

我不希望这种情况发生.我该如何禁用它?

我尝试了这里提到的所有选项,但它没有被禁用.

的index.html

    <!doctype html>
<html class="no-js">

<head>
    <meta charset="utf-8">
    <title></title>
    <meta name="description" content="">
    <meta name="viewport" content="width=device-width">
    <!-- Place favicon.ico and apple-touch-icon.png in the root directory -->
    <!-- build:css(.) styles/vendor.css -->
    <!-- bower:css -->
    <link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.css" />
    <!-- endbower -->
    <!-- endbuild -->
    <!-- build:css(.tmp) styles/main.css -->
    <link rel="stylesheet" href="styles/main.css">
    <!-- endbuild -->
</head>

<body ng-app="SS">
    <!--[if lt IE 7]>
      <p class="browsehappy">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> …
Run Code Online (Sandbox Code Playgroud)

gruntjs yeoman

10
推荐指数
3
解决办法
7305
查看次数

标签 统计

gruntjs ×1

yeoman ×1