HMR not Working when using Copy Plugin
See original GitHub issuenpm run hmr
mix.js('resources/assets/js/app.js', 'public/js')
mix.copy('node_modules/bootstrap/fonts', 'public/fonts')
This error preventing hot reload from working:
ERROR in [copy-webpack-plugin] Using older versions of webpack-dev-server, devServer.outputPath must be defined to write to absolute paths
npm run hmr
mix.js('resources/assets/js/app.js', 'public/js')
//mix.copy('node_modules/bootstrap/fonts', 'public/fonts')
Works.
I tried to use the output path as an absolute path but it can’t find any js file.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:6
- Comments:13 (7 by maintainers)
Top Results From Across the Web
HMR not Working when using Copy Plugin · Issue #63 - GitHub
The copy plugin doesn't seem to be really stable. Dunno if there are better webpack copy plugins who support the webpack dev server....
Read more >Webpack 4 HMR not fully working, can't figure out why
I'm trying to set up a frontend build pipeline with Webpack + Typescript, running into an issue with HMR, it's almost there.
Read more >MiniCssExtractPlugin - webpack
This plugin should not be used with style-loader in the loaders chain. Here is an example to have both HMR in development and...
Read more >Features | Vite
Vite provides first-party HMR integrations for Vue Single File Components and ... Use the Type-Only Imports and Export syntax to avoid potential problems...
Read more >vite-plugin-hmr-public-copy - NPM Package Overview - Socket
Start using Socket to analyze vite-plugin-hmr-public-copy and its 4 ... Warning Please do not raise issues as those will most likely be ...
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
This is fixed in the next tagged release.
Yes didn’t find a fix for that yet.