Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

fix that replaces \ separator by / #8

Merged
merged 1 commit into from Apr 15, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion tasks/lib/encode.js
Expand Up @@ -104,7 +104,7 @@ exports.init = function(grunt) {
// local file system.. fix up the path
loc = img.charAt(0) === "/" ?
(opts.baseDir || "") + loc :
path.join(path.dirname(srcFile), (opts.baseDir || "") + img);
path.join(path.dirname(srcFile), (opts.baseDir || "") + img).replace(/\\/g, '/');

// If that didn't work, try finding the image relative to
// the current file instead.
Expand Down