Open dkarlovi opened 2 years ago
Does this not work? I'm guessing it doesn't... but I thought that it actually might. This feature makes sense to me, but copyFiles()
is tricky. So if someone can make a PR to get this going, then awesome, 👍
@weaverryan since you assume it worked, I've re-tested it to make doubly sure, I did this:
{
"dependencies": {
"@sigwinhq/store-frontend": "file:vendor/sigwin/store-frontend-bundle/bundle/Resources/assets"
}
}
$ ls vendor/sigwin/store-frontend-bundle/bundle/Resources/assets
controllers css icons images package.json
Encore
.copyFiles({
from: '@sigwinhq/store-frontend/icons',
to: 'icons/[path][name].[hash:8].[ext]',
})
$ npx encore prod
Running webpack ...
WARNING The "from" option of copyFiles() should be set to an existing directory but "@sigwinhq/store-frontend/icons" does not seem to exist. Nothing will be copied for this copyFiles() config object.
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
The bundle will register a path like this
It would be nice to be able to use this in the
copyFiles()
, like so