【问题标题】:grunt-contrib-copy task is not copyinggrunt-contrib-copy 任务没有复制
【发布时间】:2018-02-13 17:01:22
【问题描述】:

我正在编写 grunt-contrib-copy 任务以从源复制到目标。但是没有文件被复制。即使没有错误。我无法理解发生了什么。

 copy:{
        index: {
            files: [
                {
                    src: '<%= devDir %>/index.html',
                    dest: '<%= buildDir %>/index.html',
                    expand: true,
                    flatten: true,
                }
            ]
        }
 }

被定义为更正文件夹, 也被定义。

有什么帮助吗?

【问题讨论】:

    标签: gruntjs grunt-contrib-copy


    【解决方案1】:

    如果您提供错误的源路径。然后 grunt-contrib-copy 将返回而不会出错。

    路径总是来自安装这些 grunt 实用程序的节点模块的引用。

    【讨论】:

      猜你喜欢
      • 2015-07-05
      • 1970-01-01
      • 1970-01-01
      • 2017-10-25
      • 2015-09-07
      • 2014-04-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多