Why gulp-sass does not generate output

I am trying to get gulp to compile some sass, however I cannot get it to write something. I see no error, and using sass to compile myself successfully. This is what my config looks like:

var sass = require('gulp-sass'); var baseOutputDir = '../publish/homepage'; var cssOutputDir = baseOutputDir + '/css'; gulp.task('sass', function () { gulp.src(['./css-lib/Bootstrap/3.3.1/assets/stylesheets/_bootstrap.scss']) .pipe(sass()) .on('error', function (err) { console.log(err.message); }) .pipe(gulp.dest(cssOutputDir)); }) 

Bootstrap is a clone of https://github.com/twbs/bootstrap-sass

+6
source share
2 answers

I use LESS, not CASS. An underscored file in front will not generate a css file.

+6
source

I had the same problem. As @Steven noted, _filename does not generate css files. Just rename / copy _bootstrap.scss to something without underline

 gulp.src(['./css-lib/Bootstrap/3.3.1/assets/stylesheets/bootstrap.scss']) 
+1
source

Source: https://habr.com/ru/post/981080/


All Articles