运行yo angular时grunt使用的dist-folder在哪里

Cot*_*ten 1 gruntjs yeoman

我使用自耕农来支撑角度应用程序,如下所示:

yo angular --minsafe
Run Code Online (Sandbox Code Playgroud)

现在,我正在尝试使用grunt-contrib-jade设置jade> html编译,但我不明白为我生成的巨大的Gruntfile.js.

有一个mountFolder函数:

var mountFolder = function (connect, dir) {
  return connect.static(require('path').resolve(dir));
};
Run Code Online (Sandbox Code Playgroud)

...和一个yeoman配置对象:

  // configurable paths
  var yeomanConfig = {
    app: 'app',
    dist: 'dist'
  };
Run Code Online (Sandbox Code Playgroud)

当运行grunt serverchrome打开时,我得到了我的页面.但这个神奇的'dist'文件夹在哪里被提供?我在磁盘上找不到它......

pas*_*ssy 6

只有在运行buildgrunt任务时才会创建dist文件夹.在运行时grunt server,您将获得提供给您的组合内容app/.tmp/文件夹,其中.tmp包含临时构建工件,如编译的SASS样式表,已编译的CoffeeScript文件,它将是您希望保留已编译的jade输出的位置.