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.

Loader is not picking up changes when running webpack-dev-server programmatically

See original GitHub issue

The recent patch #80 will make loader pick-up changes only when webpack-dev-server is invoked from CLI.

The following checks only process.argv but it should be also checking for programmaic use, when webpack-dev-server is used through Node.js API

  var hasWebpackDevServer = Array.prototype.filter.call(process.argv, function (arg) {
    return arg.indexOf('webpack-dev-server') !== -1;
  }).length > 0;

I would love to look in to that, but I’m not quite sure how to detect webpack-dev-server programmatic use. Any hints?

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
halfzebracommented, Dec 20, 2016

@eeue56 Thanks for the reply!

How about passing a flag via query string to tell loader to watch the files?

0reactions
baransucommented, Feb 26, 2017

I’m using ejected create-react-app with additional this loader to use Elm with React any webpack seems to listen only for changes in directory specified in `elm-package.json’. Any change within nested folders and modules are silent and require force update with some change to not nested file.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Webpack-dev-server compiles files but does not refresh or ...
So with this setup, I run npm run dev . The webpack-dev-server starts up, the module loader test works (i.e. when I save...
Read more >
Adding Webpack-dev-server - Toni-Develops
Basically webpack-dev-server is handy dev tool that is not only an HTTP ... Set up Webpack to monitor your project's folder for changes...
Read more >
Hot Module Replacement - webpack
Elm Hot webpack Loader: Supports HMR for the Elm programming language. Angular HMR: No loader necessary! A small change to your main NgModule...
Read more >
Bundling Extensions - Visual Studio Code
When VS Code is running in the browser, it can only load one file for your extension so the extension code needs to...
Read more >
Add a map to your website (JavaScript) - Google Developers
You learn all the basics, from getting set up to loading the Maps JavaScript API, displaying your first map, working with markers and...
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