Skip to content

Commit

Permalink
Added includePaths to singularity and breakpoint modules in the gulpf…
Browse files Browse the repository at this point in the history
…ile. (#54)

This cleans up the import path in the _init.scss file.
  • Loading branch information
martensc authored and Lauren Burroughs committed Nov 22, 2016
1 parent 477d16d commit 3b703bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
8 changes: 7 additions & 1 deletion Gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,13 @@ gulp.task('sass', function() {
stylelint(defaults.stylelint),
reporter({ clearMessages: true })
], {syntax: syntax_scss}))
.pipe(sass().on('error',sass.logError))
// Include paths to sass modules
.pipe(sass({
includePaths: [
'node_modules/singularitygs/stylesheets/',
'node_modules/breakpoint-sass/stylesheets/'
]
}).on('error',sass.logError))
// Run postcss plugin functions
.pipe(postcss(processors))
// Put the CSS in the destination dir
Expand Down
5 changes: 3 additions & 2 deletions STYLEGUIDE_TEMPLATE/source/code/sass/_init.scss
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,10 @@ $indent-amount: 1em;
// =============================================================================

// Add the Singularity Grids responsive layout mixins.
@import "../../../../node_modules/butler/node_modules/singularitygs/stylesheets/singularitygs";
@import "singularitygs";

// Add the Breakpoint mixin.
@import "../../../../node_modules/butler/node_modules/breakpoint-sass/stylesheets/breakpoint";
@import "breakpoint";

// Now we add our custom helper mixins.
@import "mixins";

0 comments on commit 3b703bc

Please sign in to comment.