Skip to content
This repository has been archived by the owner on Feb 18, 2021. It is now read-only.

Modified to enabled original src paths to be maintained in destination. #9

Merged
merged 1 commit into from
Jun 23, 2014

Conversation

morganesque
Copy link
Contributor

I wanted the same directory structure to be recreated at destination as was found at the source which I don't think currently happens. I took a look at how svgmin does it and managed to create a solution. It does mean you have to set cwd in the config in order to separate it from the source files.

files: [
    {
        cwd: 'src/img/',
        src: '**/*.svg',
        dest: 'build/img/'
    }
]

It basically uses this.files instead of this.data.files which already has a reference to the globbed files and gives you the ability to then keep the cwd part separate meaning you can then recreate the full directory path in the destination.

Also, I think this will solve the issue which is being talked about here

@markgoodyear
Copy link

+1. Using this as I need the original source paths to be maintained. Can confirm it works fine.

@averyvery
Copy link

👍

@thomaswelton
Copy link

👍
@dbushell are you looking for a maintainer for this project?

dbushell added a commit that referenced this pull request Jun 23, 2014
Modified to enabled original src paths to be maintained in destination.
@dbushell dbushell merged commit 8103302 into dbushell:master Jun 23, 2014
@theme theme mentioned this pull request Jun 2, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants