Bulma: SCSS Version?

Created on 10 Mar 2016  路  2Comments  路  Source: jgthms/bulma

Hello,

remains bulma sass or is scheduled to convert to scss?

BR
Oliver

question

Most helpful comment

Hi Oliver

It will remain in .sass forever. But if you need a .scss version, converting it locally is very easy with sass-convert.

Plus: if you have a setup for .scss, then it will work for .sass. as well.

All 2 comments

Hi Oliver

It will remain in .sass forever. But if you need a .scss version, converting it locally is very easy with sass-convert.

Plus: if you have a setup for .scss, then it will work for .sass. as well.

npm install -D sass-convert gulp bulma gulp-sass gulp-replace
gem install sass

var gulp = require("gulp"),
    replace = require('gulp-replace'),
    converter = require('sass-convert'),
    sass = require('gulp-sass');

gulp.task('sass', function () {
    return gulp.src('./bulma/bulma.scss')
        .pipe(sass().on('error', sass.logError))
        .pipe(gulp.dest('./bulma/css'));
});
gulp.task('bulmaconvert', function () {
    return gulp.src(['node_modules/bulma/*.+(sass|scss)',
        'node_modules/bulma/sass/**/*.+(sass|scss)'
    ], { base: './node_modules/bulma/' })
        .pipe(converter({
            from: 'sass',
            to: 'scss',
            rename: true
        }))
        .pipe(replace('.sass"', '.scss"'))
        .pipe(gulp.dest('./bulma'));
});


gulp bulmaconvert
gulp sass

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Qard picture Qard  路  3Comments

Yard8 picture Yard8  路  3Comments

jaredreich picture jaredreich  路  3Comments

Antrikshy picture Antrikshy  路  3Comments

bigZ-again picture bigZ-again  路  3Comments