-
-
Notifications
You must be signed in to change notification settings - Fork 200
Closed
Labels
BugBug FixBug Fix
Description
I have just spent a few hours trying to make dev-server serve files via SSL with .pfx specified (as per Symfony recommendation and personal preference), but I found no way around it. It looks to me like a bug in webpack-dev-server
, but am not sure where to look for.
- Before (encore < 1.0.0)
I had set up in packages.json
:
"scripts": {
"dev-server": "encore dev-server --compress --https --pfx=\"$HOME/.symfony/certs/default.p12\" --disable-host-check",
}
- After (encore 1.0.x)
Most options were easily migrated to configureDevServerOptions
, but:
- when I set
options.https: { pfx: process.env.HOME + '/.symfony/certs/default.p12' }
and no--https
in command line, dev-server serves files with correct certificate. Butmanifest.json
,entrypoints.json
and paths in CSS contains paths withhttp://
, thus development app served via https cannot load any asset. - when I set
options.https: { pfx: process.env.HOME + '/.symfony/certs/default.p12' }
or nooptions.https
at all, but pass--https
in command line, dev-server serves files with self signing certificate (ignoringpfx
configuration), but creates correct manifest.json, entrypoints.json and paths in CSS.
Second options could be a short term solution for me (accepting new certificate once in a while is not that bad), but it would be nice to have working pfx
option with manifest plugin. I see no way to pass pfx in command-line, which could probably solve the issue.
stephanvierkant, mradhi and jkbmaj
Metadata
Metadata
Assignees
Labels
BugBug FixBug Fix