@@ -25,12 +25,6 @@ you're done: the paths in your templates will automatically point to the dev ser
2525dev-server Options
2626------------------
2727
28- .. caution ::
29-
30- Encore uses ``webpack-dev-server `` version 4, which at the time of Encore's
31- 1.0 release was still in beta and was not documented. See the `4.0 CHANGELOG `_
32- for changes.
33-
3428The ``dev-server `` command supports all the options defined by `webpack-dev-server `_.
3529You can set these options via command line options:
3630
@@ -54,16 +48,16 @@ method in your ``webpack.config.js`` file:
5448 // ...
5549
5650 .configureDevServerOptions (options => {
57- options .https = {
58- key: ' /path/to/server.key' ,
59- cert: ' /path/to/server.crt' ,
51+ options .server = {
52+ type: ' https' ,
53+ options: {
54+ key: ' /path/to/server.key' ,
55+ cert: ' /path/to/server.crt' ,
56+ }
6057 }
6158 })
6259 ;
6360
64- .. versionadded :: 0.28.4
65-
66- The ``Encore.configureDevServerOptions() `` method was introduced in Encore 0.28.4.
6761
6862 Enabling HTTPS using the Symfony Web Server
6963-------------------------------------------
@@ -82,18 +76,14 @@ server SSL certificate:
8276 // ...
8377
8478 + .configureDevServerOptions(options => {
85- + options.https = {
86- + pfx: path.join(process.env.HOME, '.symfony/certs/default.p12'),
79+ + options.server = {
80+ + type: 'https',
81+ + options: {
82+ + pfx: path.join(process.env.HOME, '.symfony/certs/default.p12'),
83+ + }
8784 + }
8885 + })
8986
90-
91- .. caution ::
92-
93- Make sure to **not ** pass the ``--https `` flag at the command line when
94- running ``encore dev-server ``. This flag was required before 1.0, but now
95- will cause your config to be overridden.
96-
9787 CORS Issues
9888-----------
9989
0 commit comments