V
V
vasIvas2015-11-16 13:51:59
css
vasIvas, 2015-11-16 13:51:59

How to setup paths in sass/scss?

The first question is that the dependencies are in the root directory in bower_components, is it possible to somehow configure sass (gulp-sass), so that instead of '../../bower_components/
dependence.sass" I should just write dependence.sass ?
The second question is me .sass and .css lie side by side, how to tell the compiler that I am importing another .sass file into the .sass file without specifying the extension, I mean a file with the .sass extension
? or .sass

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
dk-web, 2015-11-16
@dk-web

In the galpa, path is set at the beginning.
Watch the video tutorial from loftblog on galp .. everything is very clear there. And about bower in the same place

S
sim3x, 2015-12-21
@sim3x

gulp.task('sass', function () {
  gulp.src(<path_to_sass_files>)
    .pipe(
      sass({
        includePaths: [],
        imagePath: <path_to_img>
      })
      .on('error', sass.logError))

    .pipe(gulp.dest(paths.css_dir));
});

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question