Questions tagged as 'gulp'

1
answer

Problem in task execution with Gulp & SASS?

I'm creating a task that compiles, renames, and simplifies files .scss to .css . My file structure looks like this: assets/ |__ css/ |__ sass/ | |__ uma-pasta/ | | |__ alguns.scss | | |__ arquivos.scss | | |__ vão.sc...
asked by 15.01.2016 / 19:25
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
0
answers

Retrieve directory where apk was created by gulp with the cordova-lib plugin

Good evening, I'm having a problem retrieving the directory where the apk file was generated. I use the cordova-lib plugin in gulp to build an ionic application. The "real" problem is that I can not recover the default location, or even te...
asked by 12.07.2018 / 02:25
1
answer

Customize output path of files converted by gulp markdown it

I was following this step by step , and then there was a need for the markdown files converted to html to be in another folder. See the code for the file gulpfile.js : var gulp = require('gulp'); var markdown = require('gulp-markdow...
asked by 11.06.2018 / 21:08
0
answers

How to replace html tags and save to a new file

I'm trying to check a .html file, remove some tags and create a new file with the changes made. In the method I am currently using (js, gulp) I end up doing multiple replaces in jail, I believe this is not the best way, I would like to know...
asked by 02.05.2018 / 14:56
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

Gulp watch shows a lot of eslint errors. Which dependencies are missing?

I made the git clone of an Ionic 1 app made with the Generator-M-Ionic I've done the following steps to install the dependencies: npm install bower install npm install --global gulp-cli And the prerequisites of the generator itself:...
asked by 20.04.2018 / 19:03
0
answers

ASP.NET Core NPM and webpack / gulp

I created a project in asp.net core using the empty template ( dotnet new web ). As I researched, to add packages like Bootstrap or jquery , we have to use NPM, which basically adds package.json to the project root and keys ba...
asked by 20.03.2018 / 12:42
1
answer

Get Git version control and save in a PHP constant

Is there a possible way to save the GIT hash within the PHP code or a version number automatically every time you push, or by Javascript, using gulp, save the version in PHP? I would like to do this so I do not have to manually put the versio...
asked by 17.01.2018 / 12:17
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