Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not working properly when concat font-awesome css file #91

Closed
dyzdyz010 opened this issue Apr 19, 2015 · 2 comments
Closed

Not working properly when concat font-awesome css file #91

dyzdyz010 opened this issue Apr 19, 2015 · 2 comments

Comments

@dyzdyz010
Copy link

I use gulp-concat to build my css. Infont-awesome.css, it's font paths are:

src: url('../fonts/fontawesome-webfont.eot?v=4.3.0');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'), url('../fonts/fontawesome-webfont.woff2?v=4.3.0') format('woff2'), url('../fonts/fontawesome-webfont.woff?v=4.3.0') format('woff'), url('../fonts/fontawesome-webfont.ttf?v=4.3.0') format('truetype'), url('../fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg');

My gulpfile.js

gulp.task('styles', function() {
    return gulp.src(['assets/css/*.css', 'assets/bower_components/fontawesome/css/font-awesome.css'])
        .pipe(concatCss('build.min.css'))
        .pipe(gulp.dest('dist/css'))
        .pipe(notify({message: 'Style task complete.'}));
});

But in my build.min.css, the font paths have been somehow changed to:

src: url("../bower_components/fontawesome/fonts/fontawesome-webfont.eot?v=4.3.0");
src: url("../bower_components/fontawesome/fonts/fontawesome-webfont.eot?#iefix&v=4.3.0") format('embedded-opentype'), url("../bower_components/fontawesome/fonts/fontawesome-webfont.woff2?v=4.3.0") format('woff2'), url("../bower_components/fontawesome/fonts/fontawesome-webfont.woff?v=4.3.0") format('woff'), url("../bower_components/fontawesome/fonts/fontawesome-webfont.ttf?v=4.3.0") format('truetype'), url("../bower_components/fontawesome/fonts/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular") format('svg');

So why they're not the same with the original file?

@yocontra
Copy link
Member

What is "concatCss"?

@dyzdyz010
Copy link
Author

Oh sorry I posted on a wrong repo...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants