From e7aa0bb533e18fa9db2337c664e0a0e1f44228ef Mon Sep 17 00:00:00 2001 From: Jeff Avallone Date: Thu, 10 Mar 2016 17:19:15 -0500 Subject: [PATCH] Removing separate SVG CSS rendering --- gulpfile.js | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index a94ae9e..e2dc9f8 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -64,16 +64,13 @@ gulp.task('static', 'Build static files into ./build directory.', function() { .pipe(gulp.dest(config.buildRoot)); }); -gulp.task('markup', 'Build markup into ./build directory.', ['markup:svg_styles'], function() { +gulp.task('markup', 'Build markup into ./build directory.', function() { return gulp.src(config.globs.templates) .pipe(frontMatter()) .pipe(hb({ data: config.globs.data, helpers: config.globs.helpers, - partials: _.flatten([ - config.globs.partials, - './tmp/build/svg_styles.hbs' - ]), + partials: config.globs.partials, parsePartialName: function(file) { return _.last(file.shortPath.split('/')); }, @@ -84,21 +81,6 @@ gulp.task('markup', 'Build markup into ./build directory.', ['markup:svg_styles' .pipe(gulp.dest(config.buildRoot)); }); -gulp.task('markup:svg_styles', false, function() { - return gulp.src('./src/sass/svg.scss') - .pipe(sass({ - includePaths: bourbon.includePaths, - outputStyle: 'compressed' - })) - .on('error', notify.onError()) - .pipe(rename({ - dirname: '', - basename: 'svg_styles', - extname: '.hbs' - })) - .pipe(gulp.dest('./tmp/build')) -}); - gulp.task('styles', 'Build stylesheets into ./build directory.', function() { return gulp.src('./src/sass/main.scss', { base: '.' }) .pipe(sourcemaps.init())