Removing configs to build styles with gulp

This commit is contained in:
Jeff Avallone 2016-10-15 13:17:11 -04:00
parent bd29a80ea7
commit f70d896839

View File

@ -52,7 +52,7 @@ gulp.task('server', 'Start development server.', ['build'], function() {
});
});
gulp.task('build', 'Build site into ./build directory.', ['static', 'markup', 'styles']);
gulp.task('build', 'Build site into ./build directory.', ['static', 'markup']);
gulp.task('static', 'Build static files into ./build directory.', function() {
return gulp.src(config.globs.other, { base: './src' })
@ -93,16 +93,3 @@ gulp.task('markup:svg_styles', false, function() {
}))
.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())
.pipe(sass({
includePaths: bourbon.includePaths,
outputStyle: 'compressed'
}))
.on('error', notify.onError())
.pipe(rename({ dirname: '' }))
.pipe(sourcemaps.write('.'))
.pipe(gulp.dest(config.buildPath('css')))
});