Skip to content

Commit 724d85c

Browse files
committed
Merge branch '3.4' into 4.2
* 3.4: Update the email address related to the Code of Conduct feat(encore): ide integration
2 parents 693e45b + 334384d commit 724d85c

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

contributing/code_of_conduct/care_team.rst

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Members
1919

2020
Here are all the members of the Code of Conduct CARE team (in alphabetic order).
2121
You can contact any of them directly using the contact details below or you can
22-
also contact all of them at once by emailing **coc@symfony.com**:
22+
also contact all of them at once by emailing **care@symfony.com**:
2323

2424
* **Emilie Lorenzo**
2525

frontend/encore/faq.rst

+31
Original file line numberDiff line numberDiff line change
@@ -137,3 +137,34 @@ Babel. But, you can change that via the ``configureBabel()`` method. See
137137
:doc:`/frontend/encore/babel` for details.
138138

139139
.. _`rsync`: https://rsync.samba.org/
140+
141+
How Do I Integrate my Encore Configuration with my IDE?
142+
-------------------------------------------------------
143+
144+
`Webpack integration in PhpStorm`_ and other IDEs makes your development more
145+
productive (for example by resolving aliases). However, you may face this error:
146+
147+
.. code-block:: text
148+
149+
Encore.setOutputPath() cannot be called yet because the runtime environment
150+
doesn't appear to be configured. Make sure you're using the encore executable
151+
or call Encore.configureRuntimeEnvironment() first if you're purposely not
152+
calling Encore directly.
153+
154+
It fails because the Encore Runtime Environment is only configured when you are
155+
running it (e.g. when executing ``yarn encore dev``). Fix this issue calling to
156+
``Encore.isRuntimeEnvironmentConfigured()`` and
157+
``Encore.configureRuntimeEnvironment()`` methods:
158+
159+
.. code-block:: javascript
160+
161+
// webpack.config.js
162+
const Encore = require('@symfony/webpack-encore')
163+
164+
if (!Encore.isRuntimeEnvironmentConfigured()) {
165+
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
166+
}
167+
168+
// ... the rest of the Encore configuration
169+
170+
.. _`Webpack integration in PhpStorm`: https://www.jetbrains.com/help/phpstorm/using-webpack.html

0 commit comments

Comments
 (0)