diff --git a/css.js b/css.js
index <HASH>..<HASH> 100644
--- a/css.js
+++ b/css.js
@@ -13,6 +13,14 @@ function getExistingAsset(load){
 var isNode = typeof process === "object" &&
 	{}.toString.call(process) === "[object process]";
 
+var isNW = (function(){
+	try {
+		return loader._nodeRequire("nw.gui") !== "undefined";
+	} catch(e) {
+		return false;
+	}
+})();
+
 var isProduction = (loader.envMap && loader.envMap.production) || loader.env === "production";
 if(isProduction) {
 	exports.fetch = function(load) {
@@ -21,7 +29,7 @@ if(isProduction) {
 		var cssFile = load.address;
 
 		var link;
-		if(isNode) {
+		if(isNode && !isNW) {
 			var path = loader._nodeRequire("path");
 			cssFile = path.relative(loader.baseURL, cssFile);
Set the link correctly in NW.js environment.

Previously NW.js was going the Node route which simply created a link
and registered for server side rendering, but for NW.js we want to
actually append the link to the head, so go the browser route instead.

Also closes #2