ant-design-blazor/site/AntDesign.Docs/gulpfile.js
James Yeung 0b738663a1 docs: dynamic primary color changing (#1332)
* feat(docs): change color dynamically

* docs: dynamic primary color changing

* fix file path

* delete the script
2021-04-10 12:34:41 +08:00

36 lines
1.1 KiB
JavaScript

var gulp = require("gulp"),
cleanCss = require("gulp-clean-css"),
less = require("gulp-less");
var rename = require('gulp-rename');
gulp.task("less-default", function () {
return gulp.src('docs.less')
.pipe(less({ javascriptEnabled: true }))
.pipe(cleanCss({ compatibility: 'ie8' }))
.pipe(rename('docs.default.css'))
.pipe(gulp.dest('wwwroot/css'));
});
gulp.task("less-aliyun", function () {
return gulp.src('docs.aliyun.less')
.pipe(less({ javascriptEnabled: true }))
.pipe(cleanCss({ compatibility: 'ie8' }))
.pipe(gulp.dest('wwwroot/css'));
});
gulp.task("less-compact", function () {
return gulp.src('docs.compact.less')
.pipe(less({ javascriptEnabled: true }))
.pipe(cleanCss({ compatibility: 'ie8' }))
.pipe(gulp.dest('wwwroot/css'));
});
gulp.task("less-dark", function () {
return gulp.src('docs.dark.less')
.pipe(less({ javascriptEnabled: true }))
.pipe(cleanCss({ compatibility: 'ie8' }))
.pipe(gulp.dest('wwwroot/css'));
});
gulp.task('default', gulp.parallel('less-default', 'less-aliyun', 'less-compact', 'less-dark'), function () { });