Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How using node-bourbon with gulp task with styles? #34

Open
leotankilevich opened this issue Aug 23, 2016 · 1 comment
Open

How using node-bourbon with gulp task with styles? #34

leotankilevich opened this issue Aug 23, 2016 · 1 comment

Comments

@leotankilevich
Copy link

gulp.task('style:build', function () {
gulp.src(path.src.style)
.pipe(sourcemaps.init())
.pipe(sass({

        includePaths: ['src/style/'],
        outputStyle: 'compressed',
        sourceMap: true,
        errLogToConsole: true
    }))
    .pipe(prefixer())
    .pipe(cssmin())
    .pipe(sourcemaps.write())
    .pipe(gulp.dest(path.build.css))
    .pipe(reload({stream: true}));

});

@iamlacroix
Copy link
Member

Hi, are you asking how to include that src/style/ path along with the node-bourbon paths?

If so, you could use the with method (docs):

includePaths: require('node-bourbon').with('src/style/'),

Behind the scenes, it is simply calling concat on node-bourbon's includePaths array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants