Is it possible to have a scss file converted to an expanded and a compressed css file in gulp-ruby-sass? -
is possible have scss file converted expanded , compressed css file? i'd have bootstrap.scss file saved boostrap.css , bootstrap.min.css
i have following code covert scss file compressed css file has same name.
var config = { sasspath: './static/scss', bowerdir: './static/bower_components' }; gulp.task('sass', function(){ return sass(config.sasspath, {style: 'compressed', loadpath: [ './static/scss', config.bowerdir + '/bootstrap-sass/assets/stylesheets' ]}) .on('error', function(err){ console.error('error!', err.message); }) .pipe(gulp.dest('./static/css')); });
i'm using gulp-ruby-sass | https://stackoverflow.com/tags/gulp-ruby-sass/info
gulp.task('app-css', function() { return sass('bower_components/sass-smacss/sass/dashboard.scss', { // nocache: true, style: 'compressed' }) .pipe(sourcemaps.init()) .on('error', errorlog) .pipe(sourcemaps.write('./maps')) .pipe(gulp.dest('app/assets/css/')) }); just replace compressed expanded above.
Comments
Post a Comment