Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Gulp/Grunt – Defining input & output via CLI

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #288821
    ainsley_clark
    Participant

    Hi,

    Im wondering if its possible to use a task runner to specify the input and output scss file via shell but still maintain the the config file?
    For example:

    gulp.task(‘sass’, function(){
    return gulp.src(‘app/scss/styles.scss’
    .pipe(sass()) // Converts Sass to CSS with gulp-sass
    .pipe(gulp.dest(‘app/css’))
    });

    But specify src and dest files via a command.
    Many thanks.

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.