Skip to content
Translate LESS to SASS using Gulp
JavaScript CSS
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
test
.gitignore
LICENSE
README.md
index.js
package.json

README.md

gulp-less2sass

Translate LESS to SASS using Gulp

Installation

npm install gulp-less2sass --save

Usage

var gulp = require('gulp');
var sass = require('gulp-sass');
var less2sass = require('gulp-less2sass');

gulp.task('less2sass', function() {
	gulp.src('in.less')
		.pipe(less2sass())
		.pipe(gulp.dest('./output'));

	// Check ./output/in.scss
});

gulp.task('less2css-without-less', function() {
	gulp.src('in.less')
		.pipe(less2sass())
		.pipe(sass())
		.pipe(gulp.dest('./output'))

	// Check ./output/in.css
});

Tests

npm test

Also check test/project to see a simple application of gulp-less2sass, using gulp task to convert a less file to scss.

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality.

Release History

Date Version Description
Dec/22/2015 0.0.2 Adding semicolons dividing mixin parameters support.
Sep/30/2015 0.0.1 Parses basic less to sass. Won't work with mixins using when statement or semicolons dividing it's parameters.
You can’t perform that action at this time.