Fix bug where assets with a space in their path could not be bundled.

This commit is contained in:
Alexandre Gigliotti
2015-09-11 09:17:10 -07:00
parent f0b9b3cc1e
commit dad1267607
3 changed files with 10 additions and 2 deletions

View File

@@ -16,7 +16,9 @@ var url = require('url');
var clean = function (path) {
path = url.parse(path);
path = _.pick(path, ['protocol', 'host', 'pathname']);
return url.format(path);
path = url.format(path);
path = decodeURI(path);
return path;
};
/**
* Convert local url data type paths to datauris.