Complete api method output.toURL

This commit is contained in:
Samy Pessé
2016-04-27 13:53:32 +02:00
parent 7298dec353
commit 8291eb58df
+3 -2
View File
@@ -4,6 +4,7 @@ var PathUtils = require('../utils/path');
var deprecate = require('./deprecate');
var encodeConfig = require('./encodeConfig');
var fileToURL = require('../output/helper/fileToURL');
/**
Encode a global context into a JS object
@@ -41,8 +42,8 @@ function encodeGlobal(output) {
Convert a filepath into an url
@return {String}
*/
toURL: function(s) {
return s;
toURL: function(filePath) {
return fileToURL(output, filePath);
},
/**