Skip to content

[Encore] Changing dev-server to use the new server option#16833

Merged
javiereguiluz merged 1 commit into
symfony:5.4from
weaverryan:encore-server-type
May 31, 2022
Merged

[Encore] Changing dev-server to use the new server option#16833
javiereguiluz merged 1 commit into
symfony:5.4from
weaverryan:encore-server-type

Conversation

@weaverryan

Copy link
Copy Markdown
Contributor

See: symfony/webpack-encore#1125

But it is NOT dependent on that PR. These changes are already "good change" and do not require changes to Encore.


Encore uses ``webpack-dev-server`` version 4, which at the time of Encore's
1.0 release was still in beta and was not documented. See the `4.0 CHANGELOG`_
for changes.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed as the note was pretty old now


.. versionadded:: 0.28.4

The ``Encore.configureDevServerOptions()`` method was introduced in Encore 0.28.4.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That version is now very old, so just some housekeeping


Make sure to **not** pass the ``--https`` flag at the command line when
running ``encore dev-server``. This flag was required before 1.0, but now
will cause your config to be overridden.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The first part of the note is now quite old as 1.0 was released about 2 years ago. For the second part (about overridden), I can't find anything in the code that would suggest that also passing --https would cause any type of overriding.

@javiereguiluz

Copy link
Copy Markdown
Member

Thank you Ryan.

@javiereguiluz javiereguiluz merged commit af83280 into symfony:5.4 May 31, 2022
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