gulp

Browsersync not syncing scroll

余生长醉 提交于 2021-02-20 04:32:09
问题 I am new to gulp and I'm trying to get browser-sync working. It seems to work fine except that the syncronised scroll is not working. Can anyone see what might be wrong with my setup. var gulp = require('gulp'), jade = require('gulp-jade'), uglify = require('gulp-uglify'), gutil = require('gulp-util'), sass = require('gulp-sass'), livereload = require('gulp-livereload'), browserSync = require('browser-sync'); var outputDir = "builds/development"; gulp.task('jade', function() { return gulp.src

Browsersync not syncing scroll

旧巷老猫 提交于 2021-02-20 04:31:11
问题 I am new to gulp and I'm trying to get browser-sync working. It seems to work fine except that the syncronised scroll is not working. Can anyone see what might be wrong with my setup. var gulp = require('gulp'), jade = require('gulp-jade'), uglify = require('gulp-uglify'), gutil = require('gulp-util'), sass = require('gulp-sass'), livereload = require('gulp-livereload'), browserSync = require('browser-sync'); var outputDir = "builds/development"; gulp.task('jade', function() { return gulp.src

Exclude Directory-Pattern in gulp with glob in `gulp.src`

…衆ロ難τιáo~ 提交于 2021-02-19 03:19:11
问题 I am trying to glob all files&directories with gulp.src() expcept all directories starting with the character _ (i.e. _Stuff/ ). How can I achieve that? 回答1: Say you have a folder project/src that contains the following files: file.txt folder folder/file.txt folder/_subfolder folder/_subfolder/file.txt folder/subfolder folder/subfolder/file.txt _folder _folder/file.txt _folder/_subfolder _folder/_subfolder/file.txt _folder/subfolder _folder/subfolder/file.txt Then this task in project

Exclude Directory-Pattern in gulp with glob in `gulp.src`

妖精的绣舞 提交于 2021-02-19 03:16:58
问题 I am trying to glob all files&directories with gulp.src() expcept all directories starting with the character _ (i.e. _Stuff/ ). How can I achieve that? 回答1: Say you have a folder project/src that contains the following files: file.txt folder folder/file.txt folder/_subfolder folder/_subfolder/file.txt folder/subfolder folder/subfolder/file.txt _folder _folder/file.txt _folder/_subfolder _folder/_subfolder/file.txt _folder/subfolder _folder/subfolder/file.txt Then this task in project

Gulp error: Did you forget to signal async completion?

家住魔仙堡 提交于 2021-02-11 12:15:42
问题 Problems with compiling what I see as a simple script using gulp. When ran it causes a "Did you forget to signal async completion?" error. Looking at the internet this seems to be a problem with async functions and read that passing and adding the done function would resolve this. In my case this isn't the case so wondering what else I'm doing wrong. gulp.task("compile-less", done => { gulp .src("./app/design/frontend/Playsports/theme_frontend_base/web/css/_base.less") .pipe(less()) .pipe(

Gulp tasks chaining

a 夏天 提交于 2021-02-10 08:44:34
问题 I'm using gulp to compile some .less files and inject the changes in the browser with live-reload. This is the task I originally created: var gulp = require('gulp'); var less = require('gulp-less'); var watch = require('gulp-watch'); var plumber = require('gulp-plumber'); var livereload = require('gulp-livereload'); var path = require('path'); var postcss = require('gulp-postcss'); var autoprefixer = require('autoprefixer-core'); var mqpacker = require('css-mqpacker'); var csswring = require(

Gulp tasks chaining

六月ゝ 毕业季﹏ 提交于 2021-02-10 08:42:53
问题 I'm using gulp to compile some .less files and inject the changes in the browser with live-reload. This is the task I originally created: var gulp = require('gulp'); var less = require('gulp-less'); var watch = require('gulp-watch'); var plumber = require('gulp-plumber'); var livereload = require('gulp-livereload'); var path = require('path'); var postcss = require('gulp-postcss'); var autoprefixer = require('autoprefixer-core'); var mqpacker = require('css-mqpacker'); var csswring = require(

Pass npm script command line arguments to a specific script inside it

不打扰是莪最后的温柔 提交于 2021-02-09 00:47:31
问题 I have a scenario where I have to run three npm script to achieve some result in my application. I combined them in one npm script. This is my package.json : "scripts": { "setup": "npm install && npm run some-script && npm install", "some-script": "gulp some-other-script" } what I would like to do is to pass arguments to setup script from command line which will be passed further to the some-script script. If I run npm run script -- --abc=123 the arguments are added at the end of the script

error with gulp-ng-annoate, couldn't process source due to parse error

早过忘川 提交于 2021-02-08 07:50:03
问题 I am getting trouble with error that is generated with gulp-ng-annoate. Error message is Error: app.js: error: couldn't process source due to parse error I've found the other thread which seems to have same problem with me but that answer does not work for me. the other thread Here is my gulp file and the files that I am trying to execute the tasks. gulpfile.js var gulp = require('gulp') var concat = require('gulp-concat') //var uglify = require('gulp-uglify') var ngAnnotate = require('gulp

error with gulp-ng-annoate, couldn't process source due to parse error

淺唱寂寞╮ 提交于 2021-02-08 07:48:22
问题 I am getting trouble with error that is generated with gulp-ng-annoate. Error message is Error: app.js: error: couldn't process source due to parse error I've found the other thread which seems to have same problem with me but that answer does not work for me. the other thread Here is my gulp file and the files that I am trying to execute the tasks. gulpfile.js var gulp = require('gulp') var concat = require('gulp-concat') //var uglify = require('gulp-uglify') var ngAnnotate = require('gulp