googlearchive / polyclean

BSD 3-Clause "New" or "Revised" License
20 stars 7 forks source link

Error: Cannot read property 'stripCss' of null #12

Closed duongphuhiep closed 8 years ago

duongphuhiep commented 8 years ago
gulp.src('admin/index.html')
    .pipe(polybuild({maximumCrush: true})) //ERROR Here!!
    .pipe(gulp.dest('_gen/admin'));

(source: https://github.com/duongphuhiep/hcqh/blob/master/gulpfile.js#L164)

gives

TypeError: Cannot read property 'stripCss' of null
    at cleanCss (/media/data/dev-js/hcqh/node_modules/polyclean/index.js:150:24)
    at /media/data/dev-js/hcqh/node_modules/lazypipe/index.js:27:19
    at Array.map (native)
    at build (/media/data/dev-js/hcqh/node_modules/lazypipe/index.js:26:37)
    at module.exports (/media/data/dev-js/hcqh/node_modules/polybuild/index.js:60:3)
    at Gulp.<anonymous> (/media/data/dev-js/hcqh/gulpfile.js:164:9)
...
duongphuhiep commented 8 years ago

it was a installation issue