So, I notice that my current Gulp installation does not import deleted fonts, such as Google fonts. In my main.scss file, I have:
@import url(https:
And when it compiles, it looks something like this:
@font-face{font-family:Lato;font-style:normal;font-weight:100;src:local('Lato Hairline'),local('Lato-Hairline'),url(../../fonts.gstatic.com/s/lato/v11/zJY4gsxBiSo5L7tNutxFNg.ttf) format('truetype')}
I use gulp-minify-css , which uses clean-css. I know that there may be something you need to do to get the remote import to work correctly, but reading the documents left me with more questions than answers. Here is the section of my Gulp file that handles Sass / CSS minification:
// Minimize CSS gulp.task('minify-css', function() { return gulp.src('css/src/*.css') .pipe(minifyCss({ compatibility: 'ie8', aggressiveMerging: false })) .pipe(gulp.dest('css/')); });
Any help would be appreciated! Thanks.
source share