-
-
Notifications
You must be signed in to change notification settings - Fork 340
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
[React] Mention Webpack Encoure bundle should be installed first #2523
base: 2.x
Are you sure you want to change the base?
Conversation
…led first If not working with AssetManager. This will help newcomers not have to remove the UX React bundle if they wanted it to modify what is created through the Webpack Encore bundle.
@@ -14,6 +14,7 @@ Symfony UX React supports React 18+. | |||
|
|||
Installation | |||
------------ | |||
Make sure you have WebpackEncore if you are not working with AssetMapper. You can install and configure Webpack Encore through the `Symfony Encore bundle`_. This will modify your ``base.html.twig`` template and create ``assets/app.js``, in addition to adding and modifying other configuration, which will in turn help you get started faster with the UX React bundle. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is a note just below, stating "works best with Webpack Encore. If AssetMapper... "
I'd rather keep it on top. I think we should add a simple sentence here, with a link to either the WebpackEncore documentation, or a section lower in the page.
Something like
. note::
This package works best with WebpackEncore (see :ref:`Install and configure WebpackEncore`_)
To use it with AssetMapper, see :ref:`Using with AssetMapper <using-with-asset-mapper>`.
That would make this visible, while keeping the top of the page focused on ux/react
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Totally, a simple sentence is enough, no need to duplicate what's written on Webpack Encore setup page.
If not working with AssetMapper.
This will help newcomers not have to remove the UX React bundle if they wanted it to modify what is created through the Webpack Encore bundle.