Answer the question
In order to leave comments, you need to log in
Sass plugin @import the entire folder, why doesn't it work?
Installed plugin sassGlob =>> npm sassGlob
Added variable to gulpfile.js
var sassGlob = require('gulp-sass-glob');
var projectPath = 'd:/Desktop/test';
gulp.task('styles', function () {
return gulp
.src(projectPath + '/sass/main.scss')
.pipe(sassGlob())
.pipe(sass())
.pipe(gulp.dest(projectPath + '/sass/app'));
});
// .pipe(sass())
//sass
gulp.task('sass', function() {
gulp.src(projectPath + '/sass/*.scss')
.pipe(sass({ outputStyle: 'expanded' }).on('error', sass.logError))
.pipe(gulp.dest(projectPath + '/css'))
});
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question