Example #1
0
	self._inlineImports = function(filePath, urlTransformFunction, rootDir) {
		if(rootDir) {
			filePath = path.normalize(rootDir + '/' + filePath);
		} else {
			subs = {};
			rootDir = path.normalize(path.dirname(filePath));
		}
		var content = self.removeComments(fs.readFileSync(filePath, 'utf8'));
		
		return self._subImportedPaths(filePath, content, urlTransformFunction, rootDir, self._inlineImports);
	}