-
-
Notifications
You must be signed in to change notification settings - Fork 5.2k
Explain how to handle static images with Webpack Encore #9565
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
Comments
@javiereguiluz , thank you for linking my article! I'll link the two main issues for reference and cross linking: |
We for sure need this! It must be the most common question. We may have a copy() method soon in Encore, but we shouldn’t wait for it. @Aerendir would you by chance be willing to submit a PR based on your tutorial? |
@weaverryan , what do you think about making it in line with the already existent methods I'm thinking at something like I'm not so versed in JavaScript, so I don't know if I can write the code... But I can try... give me some time... For sure I'm not able to remove the "evil" folder "assets" from the path! 😂 |
Ok, I've tried, but unfortunately I'm not able to implement it: I'm not so experienced with Javascript and Webpack to implement it :( I've tried this:
but it doesn't work:
|
hi every1, any news on this issue? i could really use a way to compress images using this and not installing one more package (like https://www.npmjs.com/package/image-webpack-loader) for this purpose.Thanks |
No news. But, there are few things going on that I want to clarify
Cheers! |
I'm closing this as fixed because we now have:
|
As published in this tutorial: http://aerendir.me/2018/04/06/managin-static-images-webpack-encore/
Symfony Best Practices say:
But the docs for Webpack Encore:
@weaverryan do you think we should mention this in the docs? Thanks!
The text was updated successfully, but these errors were encountered: