B
B
Brees2019-08-04 21:45:27
phpstorm
Brees, 2019-08-04 21:45:27

How to make Phpstorm and gulp-sass @import friends?

Galpa task:

gulp.task('styles', () => {
  return gulp.src('./src/main.sass')
      .pipe(sass({
        includePaths: ['node_modules']
      }))
      .pipe(gulp.dest('./dist'));
});

Syntax highlighting in phpstorm only occurs when specifying a path through a tilde:
spoiler
5d472705efb8d491834129.jpeg

But with this config, we get an error:
spoiler
5d472728a060d044365438.jpeg

If I understand correctly, the tilde points to node_modules, but it only works in js, is it possible to somehow specify paths through it in .sass files? Or are there other ways to add path hinting support to phpstorm to avoid this:
spoiler
5d4727b160d5e192872275.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question