Questions tagged as 'gulpjs'

1
answer

Problem installing Gulp

I'm trying to install Gulp on Ubuntu, but it only returns me error: root@gabriel-Aspire-E1-571:/var/www/aaa/projeto# npm install --save-dev gulp npm WARN package.json [email protected] No description npm WARN package.json [email protected] No reposito...
asked by 12.08.2015 / 22:58
1
answer

Problem with TFS and Gulp

When I use gulp with TFS I have trouble executing gulp commands: TFS when checked the files, it locks the gulp's actions, not letting it read the files checked by TFS. My solution is to give edit to all solution files. Is there any other solutio...
asked by 25.12.2014 / 19:32
0
answers

How to increase the level of image optimization using Gulp?

I have a task and would like to know how do I improve image optimization? Here's my script below: gulp.task( 'build-img', () => gulp.src('assets/img/**/*') .pipe(imagemin( { interlaced: true, prog...
asked by 02.05.2018 / 23:01
1
answer

Condition to ignore files ".min.js"

I have the following task in my gulpfile.js that renames files .js to .min.js : gulp.task('js', function () { return gulp.src(paths.scripts.src) .pipe(gulpif(prod, uglify())) .pipe(rename({ suffix: '.min' }))...
asked by 12.11.2017 / 23:40
1
answer

Gulp Watch, SASS does not change you

My GULP: var gulp = require('gulp'), sass = require('gulp-ruby-sass'), imagemin = require('gulp-imagemin'), changed = require('gulp-changed'), browserSync = require('browser-sync'), livereload = require('gul...
asked by 11.07.2016 / 21:34
0
answers

".js" file generated by Gulp returns the error "require is not defined"

I've installed Gulp to concatenate and mine my files .js , but the following error occurs in the browser when I test the application: Uncaught ReferenceError: require is not defined I have gulpfile.js as follows: var gulp = r...
asked by 13.04.2016 / 20:29
1
answer

Start php server with livereload with gulp

I started my studies with gulp and I loved livereload, but I only managed with static files like this link . My goal is to start the gulp, however on the embedded php server (localhost -s Localhost: 8000) or on the server with Xampp or Lampp, i...
asked by 18.10.2015 / 19:54
1
answer

npm WARN deprecated

I have tried to find a solution on the net about this error and the ones I found did not work. npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue npm WARN deprecated [email protected]: P...
asked by 06.10.2016 / 19:42
2
answers

Gulp Watch does not update

Hello, I am a beginner in GULP and I have the following problem, the code below, which simply minifies JS and CSS , works perfectly if you run the functions in default and run GULP . The problem is that with Wa...
asked by 03.08.2016 / 03:11
1
answer

Generate a mined file for each file within a folder

I configured the following task to generate a minified file: gulp.task('frontend-js', function () { return gulp.src([ 'bower_components/jquery/dist/jquery.js', 'bower_components/jquery-ui/jquery-ui.js', 'bower_compo...
asked by 20.06.2016 / 14:21