MCPcopy Index your code
hub / github.com/purifycss/purifycss / getOptions

Function getOptions

lib/purifycss.js:983–991  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

981};
982
983var getOptions = function getOptions() {
984 var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
985
986 var opt = {};
987 for (var option in OPTIONS) {
988 opt[option] = options[option] || OPTIONS[option];
989 }
990 return opt;
991};
992
993var minify = function minify(cssSource, options) {
994 return new CleanCss(options).minify(cssSource).styles;

Callers 1

purifyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected