This loader should not expect `--watch` for the dev server
See original GitHub issueIn version 4.4.0 of the webpack cli you could pass a --watch
flag like:
webpack serve --watch
This will make this loader rebuild files on changes.
In version 4.5 of the CLI passing that flag is an error:
https://github.com/webpack/webpack-cli/issues/2401
The watching should happen automatically. Which indeed happens with CSS and Typescript files. But not with Elm file.
The loader should watch file without the --watch
flag.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:4
- Comments:9 (8 by maintainers)
Top Results From Across the Web
Unknown option '--watch' in 4.5.0 · Issue #2401 - GitHub
This loader should not expect --watch for the dev server ... But I'm not familiar on how to build webpack loaders. I can...
Read more >webpack-dev-server hot reload not working - Stack Overflow
And it builds and seems like it's working. localhost:8080 shows the expected result but hot-reload does just not work. When I change a...
Read more >Watch and WatchOptions | webpack
Webpack can watch files and recompile whenever they change. This page explains how to enable this and a couple of tweaks you can...
Read more >Solution for Webpack 5 Dev Server Not Live Reloading
Your browser can 't play this video. Learn more. Switch camera.
Read more >How I solved and debugged my Webpack issue through trial ...
I know that webpack-dev-server is in maintenance now, so I tried webpack-serve, but it seemed like source maps do not work with it...
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
@lukewestby Any update on when we can expect version 8.0.0 to be available on npm?
https://github.com/elm-community/elm-webpack-loader/pull/199 was merged