Small touches

This commit is contained in:
Javier Álvarez Medina 2017-05-24 13:07:21 +02:00
parent a41763c4f2
commit 3012203185

View File

@ -2,14 +2,14 @@ var gulp = require('gulp');
var iconfont = require('gulp-iconfont'); var iconfont = require('gulp-iconfont');
var iconfontCss = require('gulp-iconfont-css'); var iconfontCss = require('gulp-iconfont-css');
String.prototype.toCamelCase = function() { String.prototype.toCamelCase = function () {
return this.replace(/^([A-Z])|\s(\w)/g, function(match, p1, p2, offset) { return this.replace(/^([A-Z])|\s(\w)/g, function (match, p1, p2, offset) {
if (p2) return p2.toUpperCase(); if (p2) return p2.toUpperCase();
return p1.toLowerCase(); return p1.toLowerCase();
}); });
}; };
gulp.task('default', function(){ gulp.task('default', function () {
gulp.src(['./icon-font/svgs/*.svg']) gulp.src(['./icon-font/svgs/*.svg'])
.pipe(iconfontCss({ .pipe(iconfontCss({