Skip to content

furny/postcss-mm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

postcss-mm

PostCSS processor for converting mm to px values

Example

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']);

Configuration

  • dpi: The dpi value against which the conversion should be performed (default: 72).
  • round: Should the processor round the results (default: true).

Development

Compile TypeScript

npm run build

License

MIT © 2015, André König (andre.koenig@posteo.de)

About

PostCSS processor for converting `mm` to `px` values

Resources

Stars

Watchers

Forks

Packages

No packages published