Loader is not picking up changes when running webpack-dev-server programmatically
See original GitHub issueThe 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:
- Created 7 years ago
- Reactions:2
- Comments:8 (7 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@eeue56 Thanks for the reply!
How about passing a flag via query string to tell loader to watch the files?
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.