gulp-viewport-units
A gulp plugin, Automatically append content property for viewport-units-buggyfill.See viewport-units-buggyfill
Install
npm install gulp-viewport-units --save-dev
Basic Usage
'use strict'; const gulp = ;const viewportUnits = gulp;
if only progress calc
gulp;
You can choose to deal with the specified viewport units
gulp;
You can filter out selectors that do not need to be processed,like blacklist.
gulp;
examples:
/*before transform*/ /*after transform*/
options
var defalutOptions = onlyCalc: false //if true,only progress calc() viewportUnits: 'vw' 'vh' 'vmax' 'vmin' //viewport units array what viewport units can be progress selectorBlackList: //An Selector array that will not be processed