N
N
Nastyuuuushka2016-07-25 21:38:17
gulp.js
Nastyuuuushka, 2016-07-25 21:38:17

Gulp does not see the Img folder, how to cure?

The browser does not display the img folder as if it does not exist and gives an error file not found when I try to insert one of the images from this folder. Other than that, there is no js either. There is only the root where the css and fonts files are merged, there is also css

var gulp = require('gulp'),
    concatCSS = require('gulp-concat-css'),
    rename = require('gulp-rename'),
    autoprefixer = require('gulp-autoprefixer'),
    minifyCSS = require('gulp-minify-css'),
    stylus = require('gulp-stylus');

gulp.task('default', function() {
    gulp.src('development/*.css')
        .pipe(concatCSS("bundle.css"))
        .pipe(autoprefixer('last 50 version'))
        .pipe(minifyCSS())
        .pipe(rename('bundle.min.css'))
        .pipe(gulp.dest('app/css/'));
});

gulp.task('watch', function() {
    gulp.watch('development/*.css', ['default'])
})

gulp.task('stylus', function() {
  gulp.src('development/*.styl')
  .pipe(stylus())
  .pipe(gulp.dest('app/img/'));
});

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question