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

Created on 6 Mar 2018  路  5Comments  路  Source: parcel-bundler/parcel

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.

Most helpful comment

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.

All 5 comments

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.

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

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

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

i dont think so... wait for verson 2.0

Is this resolved in 2.0 then?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

algebraic-brain picture algebraic-brain  路  3Comments

davidnagli picture davidnagli  路  3Comments

will-stone picture will-stone  路  3Comments

davidnagli picture davidnagli  路  3Comments

humphd picture humphd  路  3Comments