0.0.2 • Published 8 years ago

gulp-less2sass v0.0.2

Weekly downloads
6
License
BSD-3-Clause
Repository
github
Last release
8 years ago

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

DateVersionDescription
Dec/22/20150.0.2Adding semicolons dividing mixin parameters support.
Sep/30/20150.0.1Parses basic less to sass. Won't work with mixins using when statement or semicolons dividing it's parameters.