File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed
contributing/code_of_conduct Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ Members
19
19
20
20
Here are all the members of the Code of Conduct CARE team (in alphabetic order).
21
21
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 **:
23
23
24
24
* **Emilie Lorenzo **
25
25
Original file line number Diff line number Diff line change @@ -137,3 +137,34 @@ Babel. But, you can change that via the ``configureBabel()`` method. See
137
137
:doc: `/frontend/encore/babel ` for details.
138
138
139
139
.. _`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
You can’t perform that action at this time.
0 commit comments