question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Webpack-HMR - HTTPS

See original GitHub issue

We can start webpack-dev-server in https mode by adding -https but the files loading in always come from http , is this because of webpack or something you’ve setup in mix?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
lukepolocommented, Jan 9, 2017

Yah this probably should be configurable, i can look at making a PR later this week

1reaction
QWp6tcommented, Jan 7, 2017

output is hard-coded here: https://github.com/JeffreyWay/laravel-mix/blob/master/src/Mix.js#L97

it’s used here: https://github.com/JeffreyWay/laravel-mix/blob/master/setup/webpack.config.js#L65

So I think you should be able to add this to L66 of webpack config file:

module.exports.output.publicPath = 'https://localhost:8080';

I’m not sure if that’s what’s causing your issue, but I think it might be.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Hot Module Replacement - webpack
Hot Module Replacement (or HMR) is one of the most useful features offered by webpack. It allows all kinds of modules to be...
Read more >
How can I get hot reloading (HMR) running with Webpack 5?
I am using: webpack 5.7.0; webpack-cli 4.2.0; react 16.13; node 14.15.1; npm 6.14.8. I start ...
Read more >
HMR not working with multiple entries · Issue #2792 - GitHub
Code. https://github.com/slightlyfaulty/webpack-hmr-multi-entry-repro. // webpack.config.js .
Read more >
Hot Module Replacement - SurviveJS
HMR is possible with JavaScript too, but due to application state, it's harder. react-refresh-webpack-plugin and vue-hot-reload-api are good examples.
Read more >
A Deep Dive into Hot Module Replacement with Webpack ...
git clone https://github.com/sis0k0/christmas-tree.git ... Therefore, the webpack-dev-server falls back to a full page reload.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found