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
assets base_path parameter not considered by encore_entry_link_tags and encore_entry_script_tags functions #222
Comments
Hi! Yea, your setup is a bit more complex :). Have you tried the 2nd argument to Also, you could try calling the |
Hi @weaverryan, thanks for you reply... It seems to me that I had an error like "the package name coloradmin does not exist" or something like this. I'll test your solution tomorrow to see... |
Hi @weaverryan, I have tested by replacing But with Thanks |
Hi @barbuslex, I think it's
the third parameter is your |
Hi @lhapaipai, Thanks you for your reply... I think I'm starting to understand... Thanks |
Hi,
I have this config in a template bundle :
webpack.config.js
webpack_encore.yaml
When i use
{{ asset('coloradmin.css', 'coloradmin') }}
the path generated is/bundles/coloradmin/coloradmin.464b2fc0.css
.When i use
{{ encore_entry_link_tags('coloradmin.css', null, 'coloradmin')
the path generated is/coloradmin.464b2fc0.css
.Same with scripts tags/functions.
Have you a workaround for considering base_path parameter with webpack encore functions ? (i need to use env variable from parent root project (inexist env in bundle)).
Thanks
The text was updated successfully, but these errors were encountered: