в чем причина может быть?
а как поправить?
Failed to load jsonip.com/: Redirect from 'jsonip.com' to 'https://jsonip.com/' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'slife.pro' is therefore not allowed access.
после обновления node надо будет обновлять плагины или все в порядке будет?
версия nodejs может играть важную роль?
что значит указатель?
.on('error', err => {
console.log(err);
});
const gulp = require('gulp'),
combine = require('stream-combiner2').obj,
gif = require('gulp-if'),
notify = require('gulp-notify'),
browserSync = require('browser-sync').create(),
sourcemaps = require('gulp-sourcemaps'),
stylus = require('gulp-stylus'),
autoprefixer = require('gulp-autoprefixer'),
uncss = require('gulp-uncss'),
preprocess = require('gulp-preprocess'),
gih = require('gulp-include-html'),
htmlmin = require('gulp-htmlmin'),
del = require('del'),
replace = require('gulp-replace'),
sprite_png = require('gulp.spritesmith'),
sprite_svg = require('gulp-svg-sprite'),
imagemin = require('gulp-imagemin'),
pngquant = require('imagemin-pngquant');
const isDevelopment = !process.env.NODE_ENV || process.env.NODE_ENV === 'development';
gulp.task('styles', function(){
return combine(
gulp.src("source/css/css.styl"),
gif(isDevelopment, sourcemaps.init()),
stylus(),
autoprefixer(['last 2 versions'], {cascade : true}),
gif(!isDevelopment, uncss({ html : ["public/*.html"] })),
gif(isDevelopment, sourcemaps.write()),
gulp.dest("public/css")
).on('error', notify.onError());
});