add more assets
This commit is contained in:
parent
987669afec
commit
16da03271e
18
gulpfile.js
18
gulpfile.js
|
@ -4,7 +4,6 @@ const cleanCSS = require("gulp-clean-css");
|
|||
const inlinesource = require("gulp-inline-source");
|
||||
const path = require("path");
|
||||
const del = require("del");
|
||||
const rename = require("gulp-rename");
|
||||
|
||||
const html = () => {
|
||||
return gulp
|
||||
|
@ -26,22 +25,23 @@ const css = () => {
|
|||
.pipe(gulp.dest("dist/styles"));
|
||||
};
|
||||
|
||||
const purgeCss = () => {
|
||||
const purge = () => {
|
||||
return del(["dist/styles"]);
|
||||
};
|
||||
|
||||
const favIcon = () => {
|
||||
return gulp
|
||||
.src("design/tinypng.png")
|
||||
.pipe(rename("favicon.ico"))
|
||||
.pipe(gulp.dest("dist"));
|
||||
const public = () => {
|
||||
return gulp.src("public/*").pipe(gulp.dest("dist"));
|
||||
};
|
||||
|
||||
const dev = () => {
|
||||
return gulp.watch(["src/**/*"], gulp.series(css, html, purgeCss, favIcon));
|
||||
return gulp.watch(
|
||||
["src/**/*"],
|
||||
{ ignoreInitial: false },
|
||||
gulp.series(css, html, purge, public)
|
||||
);
|
||||
};
|
||||
|
||||
exports.html = html;
|
||||
exports.css = css;
|
||||
exports.dev = dev;
|
||||
exports.default = gulp.series(css, html, purgeCss, favIcon);
|
||||
exports.default = gulp.series(css, html, purge, public);
|
||||
|
|
|
@ -12,8 +12,7 @@
|
|||
"gulp": "^4.0.2",
|
||||
"gulp-clean-css": "^4.3.0",
|
||||
"gulp-htmlmin": "^5.0.1",
|
||||
"gulp-inline-source": "^4.0.0",
|
||||
"gulp-rename": "^2.0.0"
|
||||
"gulp-inline-source": "^4.0.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@nodelib/fs.scandir": {
|
||||
|
@ -2028,15 +2027,6 @@
|
|||
"node": ">=7.6"
|
||||
}
|
||||
},
|
||||
"node_modules/gulp-rename": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-2.0.0.tgz",
|
||||
"integrity": "sha512-97Vba4KBzbYmR5VBs9mWmK+HwIf5mj+/zioxfZhOKeXtx5ZjBk57KFlePf5nxq9QsTtFl0ejnHE3zTC9MHXqyQ==",
|
||||
"dev": true,
|
||||
"engines": {
|
||||
"node": ">=4"
|
||||
}
|
||||
},
|
||||
"node_modules/gulplog": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz",
|
||||
|
@ -6958,12 +6948,6 @@
|
|||
"through2": "~2.0.0"
|
||||
}
|
||||
},
|
||||
"gulp-rename": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/gulp-rename/-/gulp-rename-2.0.0.tgz",
|
||||
"integrity": "sha512-97Vba4KBzbYmR5VBs9mWmK+HwIf5mj+/zioxfZhOKeXtx5ZjBk57KFlePf5nxq9QsTtFl0ejnHE3zTC9MHXqyQ==",
|
||||
"dev": true
|
||||
},
|
||||
"gulplog": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://registry.npmjs.org/gulplog/-/gulplog-1.0.0.tgz",
|
||||
|
|
|
@ -20,7 +20,6 @@
|
|||
"gulp": "^4.0.2",
|
||||
"gulp-clean-css": "^4.3.0",
|
||||
"gulp-htmlmin": "^5.0.1",
|
||||
"gulp-inline-source": "^4.0.0",
|
||||
"gulp-rename": "^2.0.0"
|
||||
"gulp-inline-source": "^4.0.0"
|
||||
}
|
||||
}
|
||||
|
|
Before Width: | Height: | Size: 125 B After Width: | Height: | Size: 125 B |
|
@ -0,0 +1,4 @@
|
|||
User-agent: *
|
||||
Disallow:
|
||||
|
||||
Sitemap: https://minwiz.com/sitemap.xml
|
|
@ -0,0 +1,6 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||
<url>
|
||||
<loc>https://minwiz.com/</loc>
|
||||
</url>
|
||||
</urlset>
|
Loading…
Reference in New Issue