gulp-clean-css

gulp-sass compiles Google Fonts CSS into the file, breaks protocol-relative link

有些话、适合烂在心里 提交于 2019-12-21 16:53:11
问题 When I use the following code in my .scss file @import url('//fonts.googleapis.com/css?family=SomeFont:400,700,400italic'); the SASS parser I use (nodejs gulp-sass ) happily downloads the file from said location and includes it as plain text in the compiled output. Here's my Gulpfile: var gulp = require('gulp'), sourcemaps = require('gulp-sourcemaps'), autoprefixer = require('gulp-autoprefixer'), minify = require('gulp-minify-css'), rename = require('gulp-rename'), sass = require('gulp-sass')

Cannot read property 'line' of undefined at originalPosition in gulp-clean-css plugin

[亡魂溺海] 提交于 2019-12-10 10:52:00
问题 As mentioned in the question, when I launch gulp build I get the following error: C:\dev\work\viewAngular\web\node_modules\gulp-clean-css\node_modules\clean-css\lib\reader\input-source-map-tracker.js:37 if (originalPosition.line === null && line > 1 && selectorFallbacks > 0) { ^ TypeError: Cannot read property 'line' of undefined at originalPosition For (C:\dev\work\viewAngular\web\node_modules\gulp-clean-css\node_modules\clean-css\lib\reader\input-source-map-tracker.js:37:23) I dont know

Cannot read property 'line' of undefined at originalPosition in gulp-clean-css plugin

冷暖自知 提交于 2019-12-06 05:01:38
As mentioned in the question, when I launch gulp build I get the following error: C:\dev\work\viewAngular\web\node_modules\gulp-clean-css\node_modules\clean-css\lib\reader\input-source-map-tracker.js:37 if (originalPosition.line === null && line > 1 && selectorFallbacks > 0) { ^ TypeError: Cannot read property 'line' of undefined at originalPosition For (C:\dev\work\viewAngular\web\node_modules\gulp-clean-css\node_modules\clean-css\lib\reader\input-source-map-tracker.js:37:23) I dont know where this is coming up from since I didn't make any changes to gulp-clean-css files or anything related.