postcss-mm

1.1.0 • Public • Published

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',['webp', '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)

Readme

Keywords

none

Package Sidebar

Install

npm i postcss-mm

Weekly Downloads

0

Version

1.1.0

License

none

Last publish

Collaborators

  • stylelounge-it