CSS file not being served (Not Found, 404) in HMR
See original GitHub issue- Laravel Mix Version: 0.12
- Node Version (
node -v
): v7.6.0 - NPM Version (
npm -v
): 4.1.2 - OS: Ubuntu Mate 16.04
Description:
It’s weird that when running npm run hot
, my css files cannot be found… Cannot GET /dist/all.css
. The path is changed to http://localhost:8080/dist/all.css
but it is not found. Anyone knows the solution for this? Im not sure if this related to #766. All javascript files is served well, except for my css file.
It is fine if I run npm run dev
.
Possible related: https://github.com/webpack-contrib/extract-text-webpack-plugin/issues/30#issuecomment-125757853
Issue Analytics
- State:
- Created 6 years ago
- Comments:9 (1 by maintainers)
Top Results From Across the Web
CSS file not being served (Not Found, 404) in HMR · Issue #830
It's weird that when running npm run hot , my css files cannot be found.. Cannot GET /dist/all.css . The path is changed...
Read more >404 error when attempting to load stylesheets - Stack Overflow
This means that the CSS file, because it isn't in a directory that is the root or under the root, does not have...
Read more >Bud Dev __hmr 404 - Roots Discourse
I'm attempting to use Bud to compile assets for a Drupal 9 theme. Everything is working properly to compile my JS and SCSS...
Read more >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 >Laravel Vite Issue - Laracasts
vite v2.9.13 dev server running at: Local: http://localhost:5173/ Network: ... but my css was not being passed through tailiwind before being served.
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
Does
http://localhost:8080/public/dist/all.css
work? I am running into the same problem. A solution was to addcontentBase: "./public"
towebpack.config.js:331
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.