lolmaus / breakpoint-slicer

Slice media queries with ease
https://lolmaus.github.io/breakpoint-slicer/
346 stars 28 forks source link

Gulp error when including breakpoint with npm #24

Closed tristan-mcdonald closed 7 years ago

tristan-mcdonald commented 7 years ago

Here are the relevant parts of the gulpfile:

const paths = {
   css: {
        files: './assets/sass/**/*',
        entry: './assets/sass/site.scss',
        plain: './assets/sass/css/**/*',
    }

return gulp
        .src(paths.css.entry)
        .pipe(sass({
            includePaths: ['./node_modules/breakpoint-sass/stylesheets']
        }).on('error', sass.logError))

And in the site.scss I'm including it like this:

@import 'breakpoint-sass';
@import 'breakpoint-slicer';

When I run gulp I'm getting an error:

Message:
    assets\sass\site.scss
Error: File to import not found or unreadable: breakpoint-sass.

assets and node_modules are both in the root directory. Any help really appreciated!

lolmaus commented 7 years ago

I doubt it's a breakpoint-slicer issue. Are you able to import other Sass libraries installed the same way?

tristan-mcdonald commented 7 years ago

I haven't yet tried but I think you're right. I'll ask on Stack Overflow!