Gulp-sass: Multiple sources and multiple destinations

Created on 22 Jan 2015  路  3Comments  路  Source: dlmanning/gulp-sass

Is it possible instead of selecting *.scss to define individual files (multiple) which each have different destinations?

So lets say I want to have foundation.css and app.css as two separate files and two different sources. I guess I could create multiple tasks.. but not sure if this can support it by default.

Thank you!

question

All 3 comments

By multiple destinations, you mean different output folders or just file names?

If you mean different folder destination then no it's not possible as gulp-sass doesn't do the file saving bit.
If you mean different files in the same folder, it should already do it

You could probably put something together with gulp-if if you'd like, but writing files (and for that matter, reading files) is outside the scope of gulp-sass. You may need to write a custom file writer. I'd recommend searching Stack Overflow for a general Gulp answer, or posting a general Gulp question there.

Was this page helpful?
0 / 5 - 0 ratings