Skip to content
This repository has been archived by the owner on Nov 4, 2021. It is now read-only.

Add extra config. options to sass-build #44

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

Chris-V
Copy link

@Chris-V Chris-V commented Jul 18, 2016

We need to apply extra transformations to our sass build. ionic-gulp-sass-build doesn't allow us to pipe such transformations. In order to keep ionic's default values and pipe additional transformations I suggest a hook function is added to the options object.

Here, I added the following properties:

  • srcOptions: because we need to set the {base: 'abc/abc'} options for gulp.src

  • hookFunction: it enables us to set our extra transformations. ie:

    options = {
     hookFunction: function(stream) {
       return stream.pipe(mySuperTransformation());
     }
    }

Chris-V added 2 commits July 18, 2016 17:24
It's useful if one needs to pipe extra transformations to the sass stream.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant