feat: add new logo and favicon generation #19
16
gulpfile.js
16
gulpfile.js
@ -12,6 +12,15 @@ function noop() {
|
|||||||
return through.obj();
|
return through.obj();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gulp.task("prepare", function (done) {
|
||||||
|
if (!fs.existsSync(BUILD)) {
|
||||||
|
fs.mkdirSync(BUILD, {
|
||||||
|
recursive: true,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
done();
|
||||||
|
});
|
||||||
|
|
||||||
gulp.task("favicon-generate", function (done) {
|
gulp.task("favicon-generate", function (done) {
|
||||||
realFavicon.generateFavicon(
|
realFavicon.generateFavicon(
|
||||||
{
|
{
|
||||||
@ -96,9 +105,12 @@ gulp.task("favicon-check-update", function (done) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
gulp.task("clean", function () {
|
gulp.task("clean", function () {
|
||||||
return del(["static/favicon/", "resources"]);
|
return del([BUILD, "static/favicon/", "resources"]);
|
||||||
});
|
});
|
||||||
|
|
||||||
/* Task series */
|
/* Task series */
|
||||||
|
|
||||||
gulp.task("favicon", gulp.series("favicon-generate", "favicon-check-update"));
|
gulp.task(
|
||||||
|
"favicon",
|
||||||
|
gulp.series("clean", "prepare", "favicon-generate", "favicon-check-update")
|
||||||
|
);
|
||||||
|
Loading…
Reference in New Issue
Block a user