Gulp Sass Compile Issue -


my gulp scss compiler below works fine single files, , when including files single output e.g. styles.scss & _base.scss output styles.css.

however if 2 output files e.g. styles.css & base.css upon making scss file 'base.scss' complies dest still .scss extension. not till rerun compile task till base.css file base.scss file in dest folder...

gulp.task('build-css', function() {     return gulp.src('source/scss/**/*.scss', { style: 'expanded' })         .pipe(plugins.sass())     .pipe(gulp.dest('public_html/css')); }); 

im using node-sass. not want use ruby-sass

output in public_html/css/

what i'm getting

css/ - base.scss - base.css - style.css 

what want

css/ - base.css - style.css 

there no such option { style: 'expanded' } available in gulp.src

to control output style, need specify outputstyle , pass argument plugins.sass(options) call.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -