less-plugin-bootstrap3
v0.0.5
Published
Bootstrap 3 LESS import
Downloads
5
Maintainers
Readme
less-plugin-bootstrap3
Imports Bootstrap LESS
code before your custom Less code.
Usage
var lessAutoprefixPlugin = new LessPluginAutoPrefix({
browsers: [
'Android >= 4',
'last 3 Chrome versions',
'last 3 Firefox versions',
'Explorer >= 8',
'last 3 iOS versions',
'Opera >= 12',
'last 3 Safari versions'
]
}),
lessBootstrapPlugin3 = new LessPluginBootstrap3();
...
gulp.task('build:less', function() {
return gulp.src(srcConfig.src.styles)
.pipe(plugins.debug({title: 'BUILD:LESS'}))
.pipe(plugins.plumber(gulpConfig.plumber))
.pipe(plugins.less({
compress: true,
plugins: [
lessBootstrapPlugin3,
lessAutoprefixPlugin
]
}))
.pipe(plugins.concat('main.css'))
.pipe(plugins.cleanCss(gulpConfig.cssClean, function(cssFile) {
console.log(cssFile.name + ': [' + cssFile.stats.originalSize + '] => [' + cssFile.stats.minifiedSize + '].min');
}))
.pipe(plugins.rename(function(path) {
path.extname = '.min.css';
}))
.pipe(gulp.dest(srcConfig.dest.styles))
.pipe(browserSync.stream());
});
Notes
- This is fork from
bassjobsen/less-plugin-bootstrap
.