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

No CSS file generating, when mode: symbols #116

Open
akurfuerst opened this issue Feb 15, 2018 · 2 comments
Open

No CSS file generating, when mode: symbols #116

akurfuerst opened this issue Feb 15, 2018 · 2 comments

Comments

@akurfuerst
Copy link

akurfuerst commented Feb 15, 2018

The css file won't be generated if I'm using mode: 'symbols'. It works with mode: 'sprite'
all paths are fine and correct.

return gulp
        .src(basePath + 'img/sprite/*.svg')
        // build svg sprite
        .pipe(svgSprite({
            mode: 'symbols',
            preview: false,
            svg: {
                symbols: 'sprite.svg',
            },
            cssFile: '../src/scss/page/components/_icon.scss',
            templates: {
                css: require('fs').readFileSync(basePath + 'src/scss/plugins/_sprite-template.scss', 'utf-8')
            }
        }))
        .pipe(gulp.dest(basePath + 'img/'));
@ghost
Copy link

ghost commented Apr 14, 2018

Hello,
I guess it's because this usage doesn't require a CSS for display. Look at the generated preview page which provides samples.

@pepa-linha
Copy link

@antoinefricker You are right but how define original icon size?

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