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?
Please sign in to leave a comment.
- 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:
I just can't make my node_modules folder as non-excluded.
You can delete package.json from your project root and re-open the project to un-exclude it... see https://intellij-support.jetbrains.com/hc/en-us/community/posts/208376385-How-to-unexclude-node-modules-in-2016-2-2-
What? Why?! WTF?!!
Will this be fixed in next version?
please see https://intellij-support.jetbrains.com/hc/en-us/community/posts/208376385-How-to-unexclude-node-modules-in-2016-2-2-
I've did. I think this feature must be optional in next updates.
https://youtrack.jetbrains.com/issue/WEB-22861 is fixed in 2016.3