systemjs-plugin-css
Advanced tools
Comparing version
@@ -125,3 +125,3 @@ var fs = require('@node/fs'); | ||
url: function(fileName, decl, from, dirname, to, options, result) { | ||
if (absUrl(fileName) || fileName.match(/^%23/)) | ||
if ((absUrl(fileName) && fileName.charAt(0) !== '/') || fileName.match(/^%23/)) | ||
return fileName; | ||
@@ -134,3 +134,7 @@ | ||
if (loader.rootURL) | ||
return (loader.browserRootURL || '/') + path.relative(loader.rootURL, path.join(dirname, fileName)).replace(/\\/g, '/'); | ||
if (fileName.charAt(0) === '/') { | ||
return (loader.browserRootURL || '/') + fileName.replace(/\\/g, '/').replace(/\//, ''); | ||
} else { | ||
return (loader.browserRootURL || '/') + path.relative(loader.rootURL, path.join(dirname, fileName)).replace(/\\/g, '/'); | ||
} | ||
else | ||
@@ -137,0 +141,0 @@ return path.relative(baseURLPath, path.join(dirname, fileName)).replace(/\\/g, '/'); |
{ | ||
"name": "systemjs-plugin-css", | ||
"version": "0.1.35", | ||
"version": "0.1.36", | ||
"main": "css", | ||
@@ -5,0 +5,0 @@ "registry": "jspm", |
4326250
02369
0.17%