Changeset View
Changeset View
Standalone View
Standalone View
src/applications/celerity/CelerityResourceTransformer.php
| Show First 20 Lines • Show All 60 Lines • ▼ Show 20 Lines | switch ($type) { | ||||
| $data); | $data); | ||||
| break; | break; | ||||
| } | } | ||||
| if (!$this->minify) { | if (!$this->minify) { | ||||
| return $data; | return $data; | ||||
| } | } | ||||
| // Some resources won't survive minification (like Raphael.js), and are | // Some resources won't survive minification (like d3.min.js), and are | ||||
cburroughs: Does this really happen to be true of both charting libraries? | |||||
Not Done Inline Actions"Yes", in the sense of "they are both already minified so there's no reason to reprocess them". I didn't actually check if d3.min.js really breaks when run through our proprocessors. epriestley: "Yes", in the sense of "they are both already minified so there's no reason to reprocess them". | |||||
| // marked so as not to be minified. | // marked so as not to be minified. | ||||
| if (strpos($data, '@'.'do-not-minify') !== false) { | if (strpos($data, '@'.'do-not-minify') !== false) { | ||||
| return $data; | return $data; | ||||
| } | } | ||||
| switch ($type) { | switch ($type) { | ||||
| case 'css': | case 'css': | ||||
| // Remove comments. | // Remove comments. | ||||
| ▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines | |||||
Does this really happen to be true of both charting libraries?