Skip to content

Commit 334384d

Browse files
committed
Minor rewords
1 parent 184575d commit 334384d

File tree

1 file changed

+15
-11
lines changed

1 file changed

+15
-11
lines changed

frontend/encore/faq.rst

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -138,21 +138,23 @@ Babel. But, you can change that via the ``configureBabel()`` method. See
138138

139139
.. _`rsync`: https://rsync.samba.org/
140140

141-
How Do I Integrate my Webpack Configuration in my IDE?
142-
------------------------------------------------------
141+
How Do I Integrate my Encore Configuration with my IDE?
142+
-------------------------------------------------------
143143

144-
Some IDE (like `PhpStorm <https://www.jetbrains.com/help/phpstorm/using-webpack.html>`_) can read and interpret your ``webpack.config.js`` file
145-
to make your development easier (e.g.: aliases resolution).
146-
147-
However, you could face the following error:
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:
148146

149147
.. code-block:: text
150148
151-
Error details: Encore.setOutputPath() cannot be called yet because the runtime environment doesn't appear to be configured. Make sure you're using the encore executable or call Encore.configureRuntimeEnvironment() first if you're purposely not calling Encore directly.
152-
153-
It fails because Encore Runtime Environment is only configured when you are running it (e.g. ``yarn encore dev``).
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.
154153
155-
To properly fix it, you should manually call ``Encore.isRuntimeEnvironmentConfigured()`` and ``Encore.configureRuntimeEnvironment()``:
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:
156158

157159
.. code-block:: javascript
158160
@@ -163,4 +165,6 @@ To properly fix it, you should manually call ``Encore.isRuntimeEnvironmentConfig
163165
Encore.configureRuntimeEnvironment(process.env.NODE_ENV || 'dev');
164166
}
165167
166-
// Normal Encore usage
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)