Removing configs to build styles with gulp
This commit is contained in:
parent
bd29a80ea7
commit
f70d896839
15
gulpfile.js
15
gulpfile.js
@ -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() {
|
gulp.task('static', 'Build static files into ./build directory.', function() {
|
||||||
return gulp.src(config.globs.other, { base: './src' })
|
return gulp.src(config.globs.other, { base: './src' })
|
||||||
@ -93,16 +93,3 @@ gulp.task('markup:svg_styles', false, function() {
|
|||||||
}))
|
}))
|
||||||
.pipe(gulp.dest('./tmp/build'))
|
.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')))
|
|
||||||
});
|
|
||||||
|
Loading…
Reference in New Issue
Block a user