-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
31 lines (24 loc) · 860 Bytes
/
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
const gulp = require('gulp');
const gutil = require('gulp-util');
//const electron = require('electron-connect').server.create();
const sass = require('gulp-sass');
gulp.task('sass', function() {
//gulp.watch('src/scss/*.scss', gulp.series('sass'));
return (
gulp
.src('src/scss/*.scss')
// Use sass with the files found, and log any errors
.pipe(sass.sync().on('error', sass.logError))
// What is the destination for the compiled file?
.pipe(gulp.dest('src/css'))
);
});
gulp.task('serve', function() {
// Start browser process
//electron.start();
// Restart browser process
//gulp.watch('index.js', electron.restart);
// Reload renderer process
gulp.watch('src/scss/*.scss', gulp.series('sass'));
//gulp.watch(['src/css/*.css'], electron.reload);
});