Answer the question
In order to leave comments, you need to log in
Is it possible to use variables in gulpfile.js?
I want to set the name of the template, for example: $mytemplate
And then I need to substitute this value in the tasks.
gulp.task('sass', function(){
return gulp.src('templates/$mytemplate/asset/sass/*.scss')
.pipe(sass())
.pipe(gulp.dest('templates/$mytemplate/css/'))
.pipe(browserSync.stream());
});
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