Skip to content
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

Open
wants to merge 1 commit into
base: 2.x
Choose a base branch
from

Conversation

dukeofgaming
Copy link

@dukeofgaming dukeofgaming commented Jan 23, 2025

If not working with AssetMapper.

Q A
Bug fix? no
New feature? no
Issues Fix #...
License MIT

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.

…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.
@carsonbot carsonbot added Bug Bug Fix Feature New Feature Status: Needs Review Needs to be reviewed labels Jan 23, 2025
@dukeofgaming dukeofgaming changed the title Update index.rst to note that Webpack Encoure bundle should be instal… Update index.rst to note that Webpack Encoure bundle should be installed first Jan 23, 2025
@@ -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.
Copy link
Member

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

Copy link
Member

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.

@smnandre smnandre added docs Improvements or additions to documentation React and removed Bug Bug Fix Feature New Feature labels Jan 23, 2025
@smnandre smnandre changed the title Update index.rst to note that Webpack Encoure bundle should be installed first [React] Mention Webpack Encoure bundle should be installed first Jan 23, 2025
@smnandre smnandre added Status: Reviewing Review is ongoing, refining with author and removed Status: Needs Review Needs to be reviewed labels Jan 23, 2025
@smnandre smnandre added Status: Needs Work Additional work is needed and removed Status: Reviewing Review is ongoing, refining with author labels Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Improvements or additions to documentation React Status: Needs Work Additional work is needed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants