options.keepBreaks = options.keepBreaks || false;
//active by default
- if (options.processImport === undefined) {
+ if (options.processImport === undefined)
options.processImport = true;
- }
// replace function
if (options.debug) {
});
// strip comments with inlined imports
- if (data.indexOf('/*') > -1) {
+ if (data.indexOf('/*') > -1)
removeComments();
- }
}
// strip parentheses in urls if possible (no spaces inside)
tempData.push(data.substring(cursor, nextStart));
var url = data.substring(nextStart + 4, nextEnd).replace(/['"]/g, '');
- if (url[0] != '/' && url.indexOf('data:') !== 0 && url.substring(url.length - 4) != '.css') {
+ if (url[0] != '/' && url.indexOf('data:') !== 0 && url.substring(url.length - 4) != '.css')
url = path.relative(toBase, path.join(fromBase, url)).replace(/\\/g, '/');
- }
tempData.push('url(' + url + ')');
cursor = nextEnd + 1;
}