I'm struggling to get gulp-compass working correctly without using a config.rb file.
Prerequisites:
- I don't want to use a config.rb file
- I need to use compass (can't just use SASS)
var compass = require('gulp-compass'),
path = require('path');
gulp.task('compass', function() {
gulp.src('./src/*.scss')
.pipe(compass({
project: path.join(__dirname, 'assets'),
css: 'css',
sass: 'sass'
}))
.pipe(gulp.dest('app/assets/temp'));
});
But I can't find the following information anywhere:
- What
path = require('path')
does. This doesn't seem to be a gulp-plugin. - What
path.join
does exactly. - What
__dirname
is and should it be changed?
If anyone can clear this up it would be much appreciated.