Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gulpfile.js « postcss « examples - github.com/twbs/rfs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: cd58c3e03c7b6184ee0ab6c8b002c994ca602831 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
'use strict';

const gulp = require('gulp');
const postcss = require('gulp-postcss');
const rfs = require('../../postcss.js');

const options = {
  twoDimensional: false,
  baseValue: 20,
  unit: 'rem',
  breakpoint: 1200,
  breakpointUnit: 'px',
  factor: 10,
  class: false,
  unitPrecision: 6,
  safariIframeResizeBugFix: false,
  remValue: 16
};

gulp.task('default', () => {
  return gulp.src('./src/main.css')
    .pipe(postcss([rfs(options)]))
    .pipe(gulp.dest('./dest'));
});

gulp.task('watch', () => {
  gulp.watch('./src/**/*.css', ['build']);
});