1.1.6 • Published 8 years ago

gulp-rem v1.1.6

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago
  • install
npm install gulp-rem
  • useage

gulp-rem works with hotcss.js

// gulpfile.js
var rem = require('gulp-rem');

gulp.task('build-css', function() {
    return gulp.src('./less/base.less')
    .pipe(plugins.less())
    .pipe(rem({
         width:640,
         unit:'pm'
    }))
    .pipe(plugins.cssmin())
    .pipe(gulp.dest('./css'))
});

//
  • options
{
	width: 640, // Width of the design draft
	unit: 'pm' // 单位为pm的会被转换为rem
}

sorry for my poor english ..

1.1.6

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.9

8 years ago

1.0.8

8 years ago

1.0.7

8 years ago

1.0.6

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago