blog-public/themes/slim/gulpfile.babel.js
Denis Zheleztsov a5dd73f274 Initial public
Some content was deleted before this project
has been moved to public
2021-10-18 19:45:57 +03:00

32 lines
862 B
JavaScript
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

// Gulpfile.js for Hugo Theme Slim
// Git repo: https://github.com/zhe/hugo-theme-slim
// This gulpfile makes use of new JavaScript features.
// Babel handles this without us having to do anything. It just works.
// You can read more about the new JavaScript features here:
// https://babeljs.io/docs/learn-es2015/
import gulp from 'gulp';
import gulpLoadPlugins from 'gulp-load-plugins';
const $ = gulpLoadPlugins();
const options = {
};
// Compile and prefix stylesheets
gulp.task('style', () => {
return gulp.src('src/sass/*.scss')
.pipe($.sourcemaps.init())
.pipe($.sass().sync({
outputStyle: 'expanded',
precision: 10,
includePaths: ['.'],
}).on('error', $.sass.logError))
.pipe($.autoprefixer({
browsers: ['last 2 version'],
}))
.pipe($.sourcemaps.write())
.pipe(gulp.dest('static/css'));
});