Skip to content

add global dependencies to less file for gulp, this loader would resolve absolute global file path to relative path.

Notifications You must be signed in to change notification settings

ymaxli/gulp-less-base-import

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gulp-less-base-import Build Status

add global dependencies to less file for gulp, this loader would resolve absolute global file path to relative path.

Installation

$ npm install gulp-less-base-import --save-dev

How to use

var lessBaseImport = require('gulp-less-base-import');

gulp.src('./src/test/a.less')
    .pipe(lessBaseImport('./base'))
    .pipe(gulp.dest('./dist'));

Before:

a {
    color: white;
}

After:

@import "../../base";
a {
    color: white
}

About

add global dependencies to less file for gulp, this loader would resolve absolute global file path to relative path.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published