You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using src patterns such as ./img instead of img, an extraneous g/ directory is created in the dest dir. I don't see why one src pattern is to be preferred over the other; both are valid paths and both should work.
This is essentially a duplicate of #28 that @dmcass opened. There is substance here, however his fix was incorrect. Instead of hardcoding a + 1 (cc764d9), it seems better to always path.normalizefilepath in the same way that fileDir is normalized.
The text was updated successfully, but these errors were encountered:
jeffreybarke
added a commit
to jeffreybarke/grunt-smushit
that referenced
this issue
Mar 30, 2014
* Update getSubPath function in /tasks/smushit.js to normalize
filepath parameter similar to how the fileDir parameter is
normalized. This fixesheldr#29, in which src patterns such as ./img
create an extraneous g/ directory in the dest directory.
* Update version in package.json to v1.2.1.
* Update release history in README with v.1.2.1 deets.
When using
src
patterns such as./img
instead ofimg
, an extraneousg/
directory is created in thedest
dir. I don't see why onesrc
pattern is to be preferred over the other; both are valid paths and both should work.This is essentially a duplicate of #28 that @dmcass opened. There is substance here, however his fix was incorrect. Instead of hardcoding a
+ 1
(cc764d9), it seems better to alwayspath.normalize
filepath
in the same way thatfileDir
is normalized.The text was updated successfully, but these errors were encountered: