rem-calc of Founation in WebStorm

Hi.

I'm working with SASS Foundation via gulp and gulp-sass.

This is my gulp task: 

gulp.task('scss', function () {
return gulp.src('assets/scss/*.scss')
.pipe(sass({includePaths: ['node_modules/foundation-sites/scss/'], outputStyle: 'compressed'}).on('error', sass.logError)) //foundation includes
.pipe(gulp.dest('assets/css'))
.pipe(connect.reload());
});

When I use rem-calc() in .scss files I've got error message:

Also there is no autocomplete for rem-calc() func.

How can I fix this small problem?

7 comments

- Mark node_modules/foundation-sites/scss folder as a resource root (Mark directory as/Resource root in folder right-click menu)

- make sure to import 'util/util' in your file:

@import 'foundation';
@import 'util/util';

 

1

I just can't make my node_modules folder as non-excluded.

0

What? Why?! WTF?!!

Will this be fixed in next version?

0

I've did. I think this feature must be optional in next updates.

0

Please sign in to leave a comment.