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

Q: How to keep the same output directory structure as the source, after processing? #951

Closed
pentool opened this issue Mar 6, 2018 · 7 comments

Comments

@pentool
Copy link

pentool commented Mar 6, 2018

Hello,

When I have an HTML file with an image tag <img src="img/city.jpg">, after processing parcel will copy the image from the img folder into the root of the dist folder. Is there a way to tell parcel to keep the structure the same as in the source folder? (eg copy the image from src/img into dest/img as opposed to just dump it into the root).

This goes for other asset files (eg css/scss) as well.

Thanks.

@pentool pentool changed the title Q: How to keep assets (eg images) in the same directory after processing? Q: How to keep the same output directory structure as the source, after processing? Mar 6, 2018
@DeMoorJasper
Copy link
Member

Currently it isn't possible to do so, see #872 for the new parcel naming strategy that is being discussed, feel free to read through it and append to that.

@equinusocio
Copy link

equinusocio commented Feb 19, 2019

@DeMoorJasper I have the same issue but i can't find a solution from #872

@LauraSophieM
Copy link

It's 2019. Is thery a solution now? Having the same problem over here...

@rifat-h
Copy link

rifat-h commented Aug 15, 2019

It's 2019. Is thery a solution now? Having the same problem over here...

i dont think so... wait for verson 2.0

@spsaucier
Copy link

Is this resolved in 2.0 then?

@FaigBagirov
Copy link

no changes yet?

@MichaelChistyakov
Copy link

Any news?

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

No branches or pull requests

8 participants