Server IP : 162.214.80.37 / Your IP : 216.73.216.83 Web Server : Apache System : Linux sh013.webhostingservices.com 4.19.286-203.ELK.el7.x86_64 #1 SMP Wed Jun 14 04:33:55 CDT 2023 x86_64 User : imyrqtmy ( 2189) PHP Version : 8.2.18 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0755) : /home2/imyrqtmy/public_html/highflyingmoneyexchanger/admin/tasks/ |
[ Home ] | [ C0mmand ] | [ Upload File ] |
---|
const path = require('path'); const { src, dest, series } = require('gulp'); const replace = require('gulp-replace'); const useref = require('gulp-useref'); module.exports = conf => { // Copy templatePath html files and assets to buildPath // ------------------------------------------------------------------------------- const prodCopyTask = function () { return src(`${templatePath}/**/*.html`) .pipe(dest(buildPath)) .pipe(src('assets/**/*')) .pipe(dest(`${buildPath}/assets/`)); }; // Rename assets path // ------------------------------------------------------------------------------- const prodRenameTasks = function () { return src(`${buildPath}/*.html`) .pipe(replace('../../assets', 'assets')) .pipe(dest(buildPath)) .pipe(src(`${buildPath}/assets/**/*`)) .pipe(replace('../../assets', 'assets')) .pipe(dest(`${buildPath}/assets/`)); }; // Combine js vendor assets in single core.js file using UseRef // ------------------------------------------------------------------------------- const prodUseRefTasks = function () { return src(`${buildPath}/*.html`).pipe(useref()).pipe(dest(buildPath)); }; const prodAllTask = series(prodCopyTask, prodRenameTasks, prodUseRefTasks); // Exports // --------------------------------------------------------------------------- return { copy: prodCopyTask, rename: prodRenameTasks, useref: prodUseRefTasks, all: prodAllTask }; };