-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
33 lines (29 loc) · 1.08 KB
/
gulpfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
var gulp = require('gulp');
gulp.task('post', function () {
var postcss = require('gulp-postcss');
var syntax = require('postcss-scss');
var rename = require('gulp-rename');
var plugins = [
require('postcss-partial-import')({ extension: "scss"}),
// These throw errors on bootstrap-sass
// require('postcss-sass-mixins'),
// require('postcss-mixins'),
// require('postcss-nested'),
// require('postcss-simple-vars'),
// require('postcss-calc'),
];
return gulp.src('short/*.scss')
.pipe( postcss(plugins, { parser: require('postcss-scss') }) )
.pipe(rename(function(path){
path.extname = '.css';
}))
.pipe( gulp.dest('build/') )
.on('error', function(e) { console.log(e.message); })
});
gulp.task('sass', function () {
var sass = require('gulp-sass');
return gulp.src('short/*.scss')
.pipe(sass.sync().on('error', sass.logError)
.on('done', function(){ console.log(arguments); }))
.pipe(gulp.dest('build/'))
});