Open luisbytes opened 6 days ago
@luisbytes I've confirmed the issue here. In fact, I think this was causing some issues for us in Ionic Framework recently. I'll get this in our backlog so we can take a closer look. Thanks for linking those other issues as well!
@luisbytes @tanner-reits Same issue here. It looks like there is a new prop keepDirStructure for the copy task. I used it and everything was fixed : https://stenciljs.com/docs/copy-tasks#keepdirstructure
@Loic57 Apparently this solution only applies when using Copy Task
in my particular case, I am using assetsdirs
Prerequisites
Stencil Version
4.21.0
Current Behavior
Files in subfolders, like
assets/icons/home.svg
, are copied to the top-level folder (assets/home.svg
), losing the original folder structure.Expected Behavior
The folder structure should be preserved, so
assets/icons/home.svg
should remain inassets/icons/home.svg
.System Info
Steps to Reproduce
assets/icons/
).assets/icons/home.svg
).4.21.0
.assets/home.svg
instead ofassets/icons/home.svg
.Code Reproduction URL
https://github.com/ionic-team/stencil
Additional Information
4.20.0.