-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
26 lines (23 loc) · 711 Bytes
/
Copy pathgulpfile.js
File metadata and controls
26 lines (23 loc) · 711 Bytes
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
var gulp = require('gulp');
var compass = require('gulp-compass');
var path = require('path');
var watch = require('gulp-watch');
gulp.task('default', function() {
// place code for your default task here
});
gulp.task('compass', function() {
//we need to work out the package name from the location for the asset publish.
gulp.src('./public/sass/*.scss')
.pipe(compass({
css: 'public/css',
sass: 'public/sass',
image: 'public/images',
sourcemap: true
}))
.pipe(shell([
'php ../../artisan bootleg:publish'
]));
});
gulp.task('watch', function() {
gulp.watch('./public/sass/**/*.scss', ['compass']);
})