Skip to content

Commit

Permalink
Add less source maps
Browse files Browse the repository at this point in the history
Watch bootstrap less files
  • Loading branch information
Berkeley Martinez authored and Berkeley Martinez committed Jan 15, 2016
1 parent 8e71cdd commit 0e52466
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ var paths = {
],

less: './client/less/main.less',
lessFiles: './client/less/*.less',
lessFiles: './client/less/**/*.less',

manifest: 'server/manifests/',

Expand Down Expand Up @@ -357,10 +357,15 @@ gulp.task('less', function() {
var dest = paths.css;
return gulp.src(paths.less)
.pipe(plumber({ errorHandler: errorHandler }))
.pipe(__DEV__ ? sourcemaps.init() : gutil.noop())
// compile
.pipe(less({
paths: [ path.join(__dirname, 'less', 'includes') ]
}))
.pipe(__DEV__ ?
sourcemaps.write({ sourceRoot: '/less' }) :
gutil.noop()
)
.pipe(gulp.dest(dest))
// add revision
.pipe(rev())
Expand Down

0 comments on commit 0e52466

Please sign in to comment.