diff --git a/index.js b/index.js
index <HASH>..<HASH> 100644
--- a/index.js
+++ b/index.js
@@ -50,8 +50,8 @@ Processor.prototype.process = function (options) {
 
 	var writeToDisk = function (result) {
 		nodefs.mkdirSync(dirName, '0777', true);
-		nodefs.writeFile(options.to, result.css);
-		nodefs.writeFile(options.to + '.map', result.map);
+		nodefs.writeFileSync(options.to, result.css);
+		nodefs.writeFileSync(options.to + '.map', result.map);
 
 		console.log(chalk.green('>>'), chalk.cyan(options.to), 'created.');
 	};
using write file sync to make sure file is available before returning.