Open mandrasch opened 1 year ago
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
Thank you for this issue. There has not been a lot of activity here for a while. Has this been resolved?
Not resolved - I currently don't use webpack-encore.
Feel free to close if not relevant, but instructions on how to use it with DDEV / Docker could be maybe helpful for some devs.
Hi, thanks so much for providing webpack-encore, awesome tool!
I'm a bit confused about the recent changes.
For the usage in Docker tool DDEV I use the following config and invoke encore dev-server with
--public
:That allowed me to achieve the following
manifest.json
-output with the DDEV url instead of localhost:My
webpack.config.js
is the following:My
.ddev/config.yaml
for exposing the port:I tried to move the
--public
setting towebpack.config.js
, because I wanted to use it like that:That gave me the error:
I saw this guide (https://github.com/webpack/webpack-dev-server/blob/master/migration-v4.md) for migration, but I was not able to use the v4 version correctly?
Always ended up with
localhost:8080
indist/manifest.json
.Two questions:
--public
a special CLI feature provided by Webpack Encore?Thanks very much in advance! I can provide a demo repository if needed of course.
(A future workaround would be to parse manifest.json via PHP and replace
localhost:8080
of course). Might also be related to https://github.com/symfony/webpack-encore/issues/1202