You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

22 lines
692 B

'use strict';
Object.defineProperty(exports, "__esModule", {
value: true
});
var _replaceValueSymbols = require('./replaceValueSymbols.js');
var _replaceValueSymbols2 = _interopRequireDefault(_replaceValueSymbols);
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var replaceSymbols = function replaceSymbols(css, replacements) {
css.walkDecls(function (decl) {
return decl.value = (0, _replaceValueSymbols2.default)(decl.value, replacements);
});
css.walkAtRules('media', function (atRule) {
return atRule.params = (0, _replaceValueSymbols2.default)(atRule.params, replacements);
});
};
exports.default = replaceSymbols;