Skip to content

Commit

Permalink
fix(project-utils): webpack dev server
Browse files Browse the repository at this point in the history
  • Loading branch information
brunozoric committed Dec 9, 2024
1 parent 80b12cd commit 1b149c8
Showing 1 changed file with 10 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,15 @@
const fs = require("fs");

module.exports = function ({ host, port, https, allowedHost, proxy, paths }) {
let server = {};
if (https) {
server = {
type: "https",
options: {
requestCert: false
}
};
}
return {
host,
port,
Expand Down Expand Up @@ -43,7 +52,7 @@ module.exports = function ({ host, port, https, allowedHost, proxy, paths }) {
publicPath: "/"
},
// Enable HTTPS if the HTTPS environment variable is set to 'true'
https,
...server,
client: {
overlay: true,
// Silence WebpackDevServer's own logs since they're generally not useful.
Expand Down

0 comments on commit 1b149c8

Please sign in to comment.