Removing separate SVG CSS rendering
This commit is contained in:
parent
ac0389c7fa
commit
e9a0def7d8
22
gulpfile.js
22
gulpfile.js
@ -64,16 +64,13 @@ gulp.task('static', 'Build static files into ./build directory.', function() {
|
|||||||
.pipe(gulp.dest(config.buildRoot));
|
.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)
|
return gulp.src(config.globs.templates)
|
||||||
.pipe(frontMatter())
|
.pipe(frontMatter())
|
||||||
.pipe(hb({
|
.pipe(hb({
|
||||||
data: config.globs.data,
|
data: config.globs.data,
|
||||||
helpers: config.globs.helpers,
|
helpers: config.globs.helpers,
|
||||||
partials: _.flatten([
|
partials: config.globs.partials,
|
||||||
config.globs.partials,
|
|
||||||
'./tmp/build/svg_styles.hbs'
|
|
||||||
]),
|
|
||||||
parsePartialName: function(file) {
|
parsePartialName: function(file) {
|
||||||
return _.last(file.shortPath.split('/'));
|
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));
|
.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() {
|
gulp.task('styles', 'Build stylesheets into ./build directory.', function() {
|
||||||
return gulp.src('./src/sass/main.scss', { base: '.' })
|
return gulp.src('./src/sass/main.scss', { base: '.' })
|
||||||
.pipe(sourcemaps.init())
|
.pipe(sourcemaps.init())
|
||||||
|
Loading…
Reference in New Issue
Block a user