Opal-Estate-Pro/node_modules/postcss-reduce-initial/dist/index.js

25 lines
679 B
JavaScript
Raw Normal View History

2019-09-13 06:27:52 +02:00
'use strict';
exports.__esModule = true;
var _postcss = require('postcss');
var _values = require('../data/values.json');
var _values2 = _interopRequireDefault(_values);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
exports.default = (0, _postcss.plugin)('postcss-reduce-initial', function () {
return function (css) {
css.walkDecls(function (decl) {
if (decl.value !== 'initial') {
return;
}
if (_values2.default[decl.prop]) {
decl.value = _values2.default[decl.prop];
}
});
};
});
module.exports = exports['default'];