I installed Bootstrap SASS in my project through NPM. After installation I tried to import the Bootstrap files into my CSS folder by creating an SASS file and gave the command
@import ../bower_components/bootstrap-sass/assets/stylesheets/bootstrap
I then updated by giving the command gulp
in NPM, but it is not importing the files needed for the folder.
I'm following the steps in this tutorial exactly the same link
gulpfile.js file :
var gulp = require('gulp');
var sass = require('gulp-ruby-sass');
var watch = require('gulp-watch');
// task para sass
gulp.task('sass', function(){
return sass('sass/**/*.sass').pipe(gulp.dest('css'))
});
// task para watch
gulp.task('watch', function(){
gulp.watch('sass/**/*.sass', ['sass'])
});
// task default
gulp.task('default', function(){
});
'use strict';
var gulp = require('gulp');
var sass = require('gulp-sass');
gulp.task('sass', function () {
return gulp.src('sass/**/*.sass')
.pipe(sass().on('error', sass.logError))
.pipe(gulp.dest('css'));
});
gulp.task('sass:watch', function () {
gulp.watch('sass/**/*.sass', ['sass']);
});