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

xmlDeclaration configuration doesn't have effect #21

Closed
rs3d opened this issue Apr 28, 2015 · 2 comments
Closed

xmlDeclaration configuration doesn't have effect #21

rs3d opened this issue Apr 28, 2015 · 2 comments
Assignees

Comments

@rs3d
Copy link

rs3d commented Apr 28, 2015

I'm trying to disable xmlDeclaration for inline svgs, but the output is always the same.
I found a simliar issue with the grunt plugin svg-sprite/grunt-svg-sprite#28

@bonkalol
Copy link

bonkalol commented May 3, 2015

I have same issue, i fix this problem with this config file

var svgConfigs = {

    mode: {
        symbol: true
    },

    svg: {
        xmlDeclaration: false,
        doctypeDeclaration: false
    },

    dest: '.'

};

gulp.task('svgSprite', function() {

    return gulp.src(paths.srcPaths.images)
        .pipe(plumber({errorHandler: log}))
        .pipe(svgSprite(svgConfigs))
        .pipe(gulp.dest('dist/img/'));
});

@rs3d
Copy link
Author

rs3d commented May 7, 2015

@bonkalol Thanks, this worked!

@jkphl jkphl self-assigned this May 7, 2015
@jkphl jkphl closed this as completed Jun 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants