PostCSS processor for converting mm to px values
Using with gulp-postcss:
var gulp = require('gulp');
var postcss = require('gulp-postcss');
var mm = require('postcss-mm');
gulp.task('css', function () {
var processors = [
mm({dpi: 72})
];
return gulp.src('./src/*.css')
.pipe(postcss(processors) )
.pipe(gulp.dest('./dist') );
});
gulp.task('default',['css']);dpi: The dpi value against which the conversion should be performed (default:72).round: Should the processor round the results (default:true).
npm run buildMIT © 2015, André König (andre.koenig@posteo.de)