NewFuture / miniprogram-build

A command line tool to build wechat MiniProgram. 微信小程序命令行构建工具
https://miniprogram-build.newfuture.cc
MIT License
58 stars 14 forks source link

scss PNG 背景图 报错 #14

Closed NewFuture closed 5 years ago

NewFuture commented 5 years ago
[01:14:16] inline: assets\images\img.png → (app.css)
(node:23664) UnhandledPromiseRejectionWarning: TypeError: Expected an `Array`, got `string`
    at module.exports (D:\GitHub\miniprogram-build\node_modules\imagemin\index.js:45:25)
    at Object.module.exports.exports.getDataURI (D:\GitHub\miniprogram-build\src\lib\inline-image.js:267:20)
    at Object.module.exports.exports.image (D:\GitHub\miniprogram-build\src\lib\inline-image.js:241:21)
    at D:\GitHub\miniprogram-build\src\lib\inline-image.js:163:33
    at Object.whilst (D:\GitHub\miniprogram-build\node_modules\async\dist\async.js:5227:5)
    at Object.module.exports.exports.stylesheet (D:\GitHub\miniprogram-build\src\lib\inline-image.js:67:15)
    at DestroyableTransform.rebase [as _transform] (D:\GitHub\miniprogram-build\src\lib\inline.js:11:16)
    at DestroyableTransform.Transform._read (D:\GitHub\miniprogram-build\node_modules\readable-stream\lib\_stream_transform.js:184:10)
    at DestroyableTransform.Transform._write (D:\GitHub\miniprogram-build\node_modules\readable-stream\lib\_stream_transform.js:172:83)
    at doWrite (D:\GitHub\miniprogram-build\node_modules\readable-stream\lib\_stream_writable.js:428:64)
(node:23664) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 4)