Reputation: 7504
I am using gulp-sass
module to compile scss files to css files.
This is my gulpfile.js
'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', function () {
return gulp.src('sass/*.scss')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('css'));
});
I have two files in my sass folder:
sass
|--- _test.scss
|--- demo.scss
The plugin compiles demo.scss file but not _test.scss, I tried with same content as well.
Is there something with the naming convention or I need to change my gulpfile.js.
Upvotes: 0
Views: 248
Reputation: 9662
You need to change _test.scss
to test.scss
.
Node sass ignores _filenames
. Usually we use _
with files names which are going to be imported in the scss
files.
Upvotes: 1