background: A login function that distinguishes the online environment from the test environment. The online environment logs in with the mobile verification code, and the test environment logs in with the account password. my first reaction to seeing ...
[21:16:03] Failed to load external module @ babel register [21:16:03] Requiring external module babel-register [21:16:04] Using gulpfile E:Demoes6gulpfile.babel.js [21:16:04] Starting build ... [21:16:04] Starting clean ... [21:16:04] Fini...
this project uses the gulp-replace plug-in to implement the include function (introducing public header.html, footer.html, etc.). There was no problem with the project before, but later, as the project grew larger, the problem of path and packaging time...
I want to monitor the changes of less files, modify the automatic translation of less files and other operations, save once can be translated into css files, but the subsequent operation to other folders is invalid. The following is my gulp configuratio...
the following is the configuration file for gulpfile.js const gulp = require( gulp ) gulp const uglify = require( gulp-uglify ) js const jshint = require( gulp-jshint ) js const minifyHtml = require( gulp-minify-html ...
< H2 > questions such as questions < H2 > @import ".. base base"; iconfont @import ".. font iconfont-180726.scss"; iconfont as above, this scss file is a public package, and the page has its own separate scss ...
I have only used webpack and vue before, and I only need npm I. gulp and angular have been looking up for a long time, and I feel that each project can be started in a different way. this is the directory downloaded from the beginning: :npm init: n...
because you don t want to manually go to xftp and pull the packaged code into the project directory after each package, gulp and gulp-sftp are used to upload the code as follows: var gulp = require( gulp ) var sftp = require( gulp-sftp ) gul...
now there is a project that is developed in conjunction with php and is front-end coupled, which is the premise. and now I use gulp s gulp-asset-rev for automatic version numbering. but our project path is _ _ PUBLIC__ Moilbe like this. cannot u...
modify the index.js file in the node_modules rev-path directory as follows: : return modifyFilename(pth, (filename, ext) => `${filename}-${hash}${ext}`); 1: return modifyFilename(pth, (filename, ext) => `${filename}${ext}`); 2: retur...
it is estimated that the reason why the packaged home.css cannot be replaced normally is that it does not conform to the regular match in manifest. Then I tested it and changed the path to.. home home.css to replace it normally, but this path is wr...
problem description during the development process, I have used gulp to compress and merge code and static resources (images), but now I have added video files. How should I package and compress this? ...
the warning,mac in the picture below also has but can be started normally; but the windows computer not only has warning, but mainly reports an error, but it cannot be started because of the error, so ask for advice. D: project fe-emishu-h5>gulp [...
my original idea was to use gulp as an automation tool, write es6 syntax, compile es6 to es5 through gulp-babel and obfuscate compression, and then debug through sourcemap, but the problem now is that the require function generated when gulp-babel compi...
how can gulp tell that a folder in dist is empty when it is compiled and packaged with watch, which means that all the files in this folder have been deleted, but I can t tell that the folder in dist is empty, so I can t delete the empty folder ...
function jsCompile() { return gulp .src(paths.src.jsFiles) .pipe( babel({ presets: ["@babel preset-env"], plugins: ["@babel plugin-transform-runtime"] }) ) .pipe(gulp.dest(paths.dist.bas...
how do I compress and merge all the js and css of the current directory to a single html file? our requirement is that only the html file is provided to the backend, and the backend is used for parsing. It will be troublesome to reference js css, and w...
same project are all win10 systems ide is webStorm on one side and vsCode on the other. the package.json,gulpfile.js is the same as in the warehouse. (dependencies are all in the same version) gulp versions are all version 3.9.1. node is v8.1...
can pack, but console.log can t go. gulp.task("agency:build", ["agency:cache-templates"], function (cb) { agencySource.js.src.push(agencySource.build.cache + " app.js"); pump( [ gulp ...
there is no problem with using the original file, and using js compressed with gulp will report this error. gulp is configured as follows: gulp.task ( "bab ", function () {) var path = . cdn public_html 4.0 js member_activity.js var index = p...