问题总结

汇总一下各种问题,解决方案,碰到问题就会更新。

Grunt

  1. 运行 jshint 出现 Warning: Path must be a string. Received null Use --force to continue.
    解决办法:
    1
    2
    3
    4
    5
    6
    ...
    options: {
    ...
    reporterOutput: "",
    ...
    }

https://github.com/jshint/jshint/issues/2922#ref-issue-154888828

  1. 运行 imagemin 出现 Warning: Imagemin.pngquant is not a function Use --force to continue.
    解决办法:
    运行 npm install grunt-contrib-imagemin@1.0.1 --save-dev