Improve the output css
Closed this issue · 0 comments
paolavrgs commented
Add to gulpfile.js a task for indent css after compile_sass
Steps to follow
- Install with npm
npm install --save-dev gulp-cssbeautify
- Add to gulpfile.js
var cssbeautify = require('gulp-cssbeautify');
- Into the task
compile_sass
add:
.pipe(cssbeautify({ indent: ' ' }))
Right after compile the sass/scss files into css, that .pipe
method it's going to indent the css (two spaces).