Skip to content

Commit e8c902c

Browse files
committed
tweaks thanks to @Kocal
1 parent 6d11cfc commit e8c902c

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

_build/redirection_map

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -511,3 +511,4 @@
511511
/messenger/message-recorder messenger/dispatch_after_current_bus
512512
/components/stopwatch https://github.com/symfony/stopwatch
513513
/service_container/3.3-di-changes https://symfony.com/doc/3.4/service_container/3.3-di-changes.html
514+
/frontend/encore/shared-entry /frontend/encore/split-chunks

frontend/encore/dev-server.rst

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,16 @@ server SSL certificate:
6262
6363
// webpack.config.js
6464
// ...
65+
const path = require('path');
6566
6667
Encore
6768
// ...
6869
69-
.configureDevServerOptions(options => {
70-
options.https = {
71-
pfx: path.join(process.env.HOME, '.symfony/certs/default.p12'),
72-
}
73-
})
70+
.configureDevServerOptions(options => {
71+
options.https = {
72+
pfx: path.join(process.env.HOME, '.symfony/certs/default.p12'),
73+
}
74+
})
7475
7576
Then make sure you run the ``dev-server`` with the ``--https`` option:
7677

@@ -92,9 +93,9 @@ the ``firewall`` option:
9293
Encore
9394
// ...
9495
95-
.configureDevServerOptions(options => {
96-
options.firewall = false;
97-
})
96+
.configureDevServerOptions(options => {
97+
options.firewall = false;
98+
})
9899
99100
Hot Module Replacement HMR
100101
--------------------------

frontend/encore/reactjs.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Using React? First add some dependencies with Yarn:
1111
.. code-block:: terminal
1212
1313
$ yarn add @babel/preset-react --dev
14-
$ yarn add react react-dom prop-types --dev
14+
$ yarn add react react-dom prop-types
1515
1616
Enable react in your ``webpack.config.js``:
1717

0 commit comments

Comments
 (0)