Bug fix: using "dev-server" with an https certificate
Hi Webpackers!
This release fixes a problem if you're using the dev-server
mode with custom https
configuration (like setting a pfx
for the ssl certificate). See #903.
If you want to run the dev-server
in https with some custom configuration, you should configure it entirely in webpack.config.js
. For example, if you're using the Symfony binary and want to re-use its https certificate:
const path = require('path');
// ...
.configureDevServerOptions(options => {
options.https = {
pfx: path.join(process.env.HOME, '.symfony/certs/default.p12'),
}
})
Then, do NOT pass the --https
flag at the command line. Just run:
yarn dev-server
To upgrade:
yarn upgrade "@symfony/webpack-encore@^1.0.5"
Changes: v1.0.4..v1.0.5
Documentation: http://symfony.com/doc/current/frontend.html
Happy packing!