Closed AndreyGrin closed 7 years ago
Here is the working version;
var gulp = require('gulp'),
postcss = require('gulp-postcss'),
postcsssvg = require('postcss-svg');
gulp.task('styles', function() {
var postcssProcessors;
postcssProcessors = [
postcsssvg({
defaults: '[fill]: green',
paths : ['./img/']
})
];
gulp.src('css/src/*.css')
.pipe(postcss(postcssProcessors))
.pipe(gulp.dest('css/out/'));
});
This is no longer part of v2
Using Gulp. I'm doing npm install postcss-svg --save-dev and next using your task. After starting have this error: TypeError: require.reload is not a function
In your github repo, I'm found reload.js, how include this?