Skip to content

Commit 5ce2c58

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

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

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)