【问题标题】:grunt copy - Couldn't load the png imagegrunt copy - 无法加载 png 图像
【发布时间】:2017-10-30 17:59:08
【问题描述】:

我是新来的咕噜声。 我正在复制 src 文件夹以通过运行命令 grunt copy 来构建。 但我无法打开构建文件夹(目标文件夹)中的所有 png 图像。 尝试打开图像时出现致命错误。 错误: “无法加载图像” “读取 PNG 图像文件时出现致命错误:不是 PNG 文件”

我正在使用的 Grunt 版本: grunt-cli v1.2.0, 咕噜声 v0.4.5, grunt-contrib-copy@1.0.0.

我已尝试使用堆栈溢出和其他站点中的所有可用链接。

请帮助我。

【问题讨论】:

    标签: node.js npm gruntjs grunt-contrib-copy


    【解决方案1】:

    我得到了答案;

    我对@9​​87654321@做了一些修改:

    • gruntfile.js 的末尾添加了grunt.loadNpmTasks('grunt-contrib-copy');
    • 修改options如下:

      options: { punctuation: '' }
      

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2020-11-04
      • 2015-04-05
      • 1970-01-01
      • 1970-01-01
      • 2019-02-06
      • 1970-01-01
      • 1970-01-01
      • 2021-07-13
      相关资源
      最近更新 更多