JavaScript
35
Вклад в тег
gulp
,var gulp = require('gulp');
var less = require('gulp-less');
var cleanCSS = require('gulp-clean-css');
gulp.task('default', function() {
gulp.src('./src/css/**/*.less')
.pipe(less())
.pipe(cleanCSS())
.pipe(gulp.dest('./dist/css/'))
;
});
gulp
, gulp-less
, gulp-clean-css
."This ~FF0000~string ~FFFF00~should ~00FF00~ be colored".replace(/~([A-F0-9]{3,6})~([^~]+)/g, '<span style="color: #$1;">$2</span>');