小编VHa*_*Hax的帖子

什么是添加<style type ="text/css"> body {display:none!important} </ style>

我按照这些说明为我的应用程序:

https://github.com/yeoman/generator-angular#readme

我的索引(在构建之前)

 <!-- 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/app.css -->
  <link href="app.less" type="text/css" rel="stylesheet/less">
  <!-- endbuild -->
Run Code Online (Sandbox Code Playgroud)

我的dist索引(在文本编辑器中)

<html ng-app="myApp"> <head> <meta charset="utf-8"> <title>Datavalidering</title> <meta name="description" content=""> <meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no"> <!-- Place favicon.ico and apple-touch-icon.png in the root directory --> <link rel="stylesheet" href="styles/vendor.2ac5f564.css"> <link rel="stylesheet" href="styles/app.d41d8cd9.css"> </head> <body>
Run Code Online (Sandbox Code Playgroud)

Dist索引(浏览器)

<head>
<style type="text/css">@charset "UTF-8";[ng\:cloak],[ng-cloak],[data-ng-cloak],[x-ng-cloak],.ng-cloak,.x-ng-cloak,.ng-hide:not(.ng-hide-animate){display:none …
Run Code Online (Sandbox Code Playgroud)

yeoman yeoman-generator yeoman-generator-angular

5
推荐指数
2
解决办法
2521
查看次数

Grunt"watch"警告:Path必须是一个字符串.收到undefined

Grunt"Watch"不想继续.

问题:运行"监视"任务等待...警告:路径必须是字符串.收到undefined

这是Gruntfile.js中的grunt手表:

watch: {
  //Watch files for changes during "grunt serve"
  main: {
    options: {
        livereload: true,
        livereloadOnError: false,
        spawn: false
    },
    files: [createFolderGlobs(['*.js', '*.less','*.html','*.json']), '!src/bower_components/**/*.js', '!src/js/**/*.js', '!_SpecRunner.html','!.grunt'],
    tasks: [] //all the tasks are run dynamically during the watch event handler

  }
},
Run Code Online (Sandbox Code Playgroud)

javascript gruntjs grunt-contrib-watch

3
推荐指数
1
解决办法
4947
查看次数