Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recreate folder structure in destination? #5

Closed
shapeshifta78 opened this issue Aug 15, 2012 · 8 comments
Closed

Recreate folder structure in destination? #5

shapeshifta78 opened this issue Aug 15, 2012 · 8 comments
Assignees

Comments

@shapeshifta78
Copy link

I like your task!
Is it possible to recreate the folder structure in the target folder when using:

destination:{
    src:'tests/img',
    dest:'tests/img/min'
},

Thanks in advance!

@ghost ghost assigned heldr Aug 15, 2012
@heldr
Copy link
Owner

heldr commented Aug 15, 2012

Not yet, but I'm going to improve it.

Thanks!

@shapeshifta78
Copy link
Author

\o/ Thumbs up!

@heldr
Copy link
Owner

heldr commented Aug 20, 2012

Please run npm update grunt-smushit

Thanks

@heldr heldr closed this as completed Aug 20, 2012
@shapeshifta78
Copy link
Author

Works well, but is it possible to copy the file even if there are no optimizations? :)
Would be easier to distribute the whole folder, I think.

heldr added a commit that referenced this issue Sep 12, 2012
@heldr
Copy link
Owner

heldr commented Sep 12, 2012

Updated :)

@yahreen
Copy link

yahreen commented Jan 15, 2013

Was this added? My folder structure is not being retained:

img: {
        task1: {
            src: ['app/assets/img/backgrounds', 'app/assets/img/charts'],
            dest: 'build/assets/img'
        }
}

@heldr
Copy link
Owner

heldr commented Jan 15, 2013

grunt-smushit doesn't support multiple directories as source yet. An alternative approach is creating 2 tasks

smushit: {
        backgrounds: {
            src: 'app/assets/img/backgrounds',
            dest: 'build/assets/img'
        },
        charts: {
            src: 'app/assets/img/charts',
            dest: 'build/assets/img'
        }
}

Thanks for the feedback

@heldr
Copy link
Owner

heldr commented Mar 6, 2013

Now it works with multiple source path:
#12

Thanks for the feedback

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants