ФорумПрограммированиеJavaScript → Сборка Gulp

Сборка Gulp

  • ba1kal

    Сообщения: 1 Репутация: N Группа: Кто попало

    Spritz 1 августа 2021 г. 23:56

    Почему в браузере выдаёт ошибку Cannot GET / ?

    let fileinclude = require('gulp-file-include');

    let project_folder = "dist";
    let source_folder = "src";

    let path = {
    build: {
    html: project_folder + "/",
    css: project_folder + "/css/",
    js: project_folder + "/js/",
    img: project_folder + "/img/",
    fonts: project_folder + "/fonts/",
    },
    src: {
    html: source_folder + "/.html",
    css: source_folder + "/scss/style.scss",
    js: source_folder + "/js/script.js",
    img: source_folder + "/img//
    .{jpg,png,svg,gif,ico,webp}",
    fonts: source_folder + "/fonts/.ttf",
    },
    watch: {
    html: source_folder + "//
    .html",
    css: source_folder + "/scss//.scss",
    js: source_folder + "/js/
    /.js",
    img: source_folder + "/img/*/.{jpg,png,svg,gif,ico,webp}",
    },
    clean: "./" + project_folder + "/"
    }

    let { src, dest } = require('gulp'),
    gulp = require('gulp'),
    browsersync = require("browser-sync").create();
    fileinclude = require("gulp-file-include");

    function browserSync(params) {
    browsersync.init({
    server: {
    baseDir: "./" + project_folder + "/"
    },
    port: 3000,
    notify: false
    })
    }

    function html() {
    return src(path.src.html)
    .pipe(fileinclude())
    .pipe(dest(path.build.html))
    .pipe(browsersync.stream())
    }

    function watchFiles(params) {
    gulp.watch([path.watch.html], html);
    }

    let build = gulp.series(html);
    let watch = gulp.parallel(build, watchFiles, browserSync);

    exports.html = html;
    exports.build = build;
    exports.watch = watch;
    exports.default = watch;

  • bikkppoes

    Сообщения: 1 Репутация: N Группа: Кто попало

    Spritz 8 декабря 2021 г. 6:59, спустя 128 дней 7 часов 3 минуты

    on the thought of his buddy zhuge qing, zhang chulan and feng baobao came to resolve the case with the help of "anywhere" business enterprise. how does zhang chulan display his competencies to assist the king trap the black hand backstage? what wonderful overall performance will zhuge qing, wang ye and others have? who're the people who covet the "8 wonders"? "under one guy-becoming a member of the world" may be introducedsoon!
    seo consultant

  • kuiling

    Сообщения: 1 Репутация: N Группа: Кто попало

    Spritz 10 марта 2022 г. 6:50, спустя 91 день 23 часа 51 минуту

    each time i heard how tons disappointment the king will be, it changed into like a river of
    popular business list

Пожалуйста, авторизуйтесь, чтобы написать комментарий!