Skip to content

fix encore multiple configuration build paths #11593

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

Closed

Conversation

gseidel
Copy link
Contributor

@gseidel gseidel commented May 23, 2019

This PR fix two things:

  • %kernel.public_dir% does not exists and %kernel.project_dir%/public is the correct path.
  • As mentioned here problem with Multiple Webpack Configurations webpack-encore#477, the multiple config will overwrite the entrypoint.js. The solution is to use two build directories, but this needs two different paths in the webpack.config.js.

Now someone can just copy&paste the code lines and it should work.

@javiereguiluz
Copy link
Member

javiereguiluz commented May 29, 2019

@gseidel thanks a lot for fixing this bug and for explaining all perfectly! Also, congrats on your first Symfony Docs contribution 🎉

Note: we merged this in 3.4 branch (the oldest maintained branch that contains the bug) and we'll merge in the other branches automatically; that's why GitHub shows this as "closed" instead of "merged", but it's merged.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants