Currently, I am utilizing gulp concat in order to merge all CSS files from JavaScript libraries into one single file. The gulp task I have set up looks like the following:
gulp.task('concatcss', function() {
return gulp.src('assets/libs/**/*.css')
.pipe(concatCss("all.css").on('error', standardHandler))
.pipe(minifyCss().on('error', standardHandler))
.pipe(gulp.dest('dist'));
});
While this method successfully combines all CSS files into one, it presents an issue when relative paths are changed. For example, any linked CSS files such as
url("../fonts/glyphicons-halflings-regular.woff")
will fail to load.
Is there a way to resolve this problem? Is there a solution that would automatically adjust the path based on the new location of the output CSS file?