1
I installed Bootstrap SASS in my project by NPM. After the installation I tried to import the Bootstrap files into my CSS folder by creating a SASS file and inside gave the command
@import ../bower_components/bootstrap-sass/assets/stylesheets/bootstrap
Then updated giving the command gulp
in NPM, but not importing the necessary files into the folder.
I am following the steps of this tutorial exactly the same https://www.youtube.com/watch?v=ITrndc4xFn0&t=1577s
Filing cabinet gulpfile.js:
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']);
});
Already made sure that Bootstrap SASS was successfully installed? What is the output of the command
gulp
? You have Gulp installed?– Woss
Yes it is installed, it is installed in the dependencies of my project Gulp also when I put the Gulp command appears the message: [15:29:26] Using gulpfile ~ Desktop Alacarte gulpfile.js [15:29:27] Starting 'default'... [15:29:27] Finished 'default' after 271 μs
– user77295
Then edit the question and add the file content
gulpfile.js
.– Woss
how do I upload the gulpfile file
– user77295
except the characters
– user77295
Post to ideone.com and paste the link here that I edit the question for you.
– Woss
sorry I couldn’t use the indeone I’ve never used before
– user77295
I created a link in the Dropbox with the file https://www.dropbox.com/s/gdcvt1jv102urtt/gulpfile.js?dl=0
– user77295
Your command
default
is blank, so nothing runs. Perhaps it is interesting to read as thegulp
works. To test, try executing the commandgulp sass
.– Woss
In this case I would put Gulp.task('default', Function(){ Gulp.Sass
– user77295
Tested the command
gulp sass
? If you confirm that it has worked I will respond with the appropriate guidelines.– Woss
worked the plugins file was created, it was because I made the wrong call ? that before had not worked out right ?
– user77295