forked from rspraymond/wp-discord
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
32 lines (26 loc) · 1.02 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
'use strict';
var gulp = require('gulp'),
sass = require('gulp-sass'),
wrapper = require('gulp-wrapper'),
cleanCSS = require('gulp-clean-css');
var admin_sass_path = './resources/sass/admin',
public_sass_path = './resources/sass/public',
admin_css_path = './wp-discord/admin/css',
public_css_path = './wp-discord/public/css';
gulp.task('admin_sass', function () {
return gulp.src(admin_sass_path + '/*.scss')
.pipe(sass({includePaths: []}))
.pipe(cleanCSS({compatibility: 'ie8'}))
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest(admin_css_path));
});
gulp.task('public_sass', function () {
return gulp.src(public_sass_path + '/*.scss')
.pipe(sass({includePaths:[]}))
.pipe(cleanCSS({compatibility: 'ie8'}))
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest(public_css_path));
});
gulp.task('default', ['admin_sass', 'public_sass'], function () {
//Silence is golden.
});