I updated to 1.4.4 and started getting the following error:
TypeError: Cannot read property '0' of undefined
at xxx\node_modules\minify\lib\css.js:32:44
at Function.ExecProto.exec.try (xxx\node_modules\minify\node_modules\execon\lib\exec.js:189:23)
at Object.module.exports as css
at optimizeData (xxx\node_modules\minify\lib\minify.js:29:21)
at onDataRead (xxx\node_modules\minify\lib\minify.js:110:9)
at xxx\node_modules\minify\lib\minify.js:94:17
at fs.js:271:14
at Object.oncomplete (fs.js:107:15)
Upon investigation, it appears in css.js line 31, that the object "min" does not have the referenced "error" property but does have an "errors" property
Altering it to use "min.errors[0]" fixes the error for me.
I updated to 1.4.4 and started getting the following error:
TypeError: Cannot read property '0' of undefined at xxx\node_modules\minify\lib\css.js:32:44 at Function.ExecProto.exec.try (xxx\node_modules\minify\node_modules\execon\lib\exec.js:189:23) at Object.module.exports as css at optimizeData (xxx\node_modules\minify\lib\minify.js:29:21) at onDataRead (xxx\node_modules\minify\lib\minify.js:110:9) at xxx\node_modules\minify\lib\minify.js:94:17 at fs.js:271:14 at Object.oncomplete (fs.js:107:15)
Upon investigation, it appears in css.js line 31, that the object "min" does not have the referenced "error" property but does have an "errors" property Altering it to use "min.errors[0]" fixes the error for me.