D
D
Dmitry Pacification2017-01-24 13:00:36
Bootstrap
Dmitry Pacification, 2017-01-24 13:00:36

I want to include bootstrap in the assembly of the front-end project. How to do it right to make it work?

The problem is that I'm a beginner, and I'm learning Gulp from this lesson webdesign-master.ru/blog/tools/2016-03-09-gulp-beg...
I worked a little with Sass. Yuzal and compass, and Prepross, and actually in the lesson I saw how you can compile sass to css. During the lesson, the question arose, how can I add bootstrap to the gallp? I googled several similar questions on different resources, but they did not lead me to a solution and a clear understanding.
Can someone tell me step by step what to connect where?
Thanks

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Dmitry Luzanov, 2017-01-24
@dmitry_pacification

I recommend you look at this

D
Dmitry Pacification, 2017-09-29
@dmitry_pacification

Chet was wandering through his Q&A and figured out that I could drop some newbie code here
gulp.task('sass', function () {
return gulp.src([
'./node_modules/bootstrap/scss/bootstrap.scss',
' ./node_modules/font-awesome/scss/font-awesome.scss',
'./src/scss/*.scss'
])
.pipe(sass().on('error', sass.logError))
.pipe (autoprefixer({
browsers: ['last 4 versions'],
cascade: false
}))
.pipe(concat('style.css'))
//.pipe(cssmin())
.pipe(rename({suffix: ' .min'}))
.pipe(gulp.dest('./dist/css'))
});
Naturally, all packages must be installed in advance, and also create tasks that would move fonts and scripts. I hope someone will help.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question