Question: bug with style-loader?
See original GitHub issueWhen i work with css background-image source map generate “Blob” url, and images not loaded from dev-server:
Request URL:blob:http%3A//localhost%3A3000/2454cd1b-a4bb-46fa-8d4b-446ac9b2c9a6
In style-loader i found this note: output.publicPath
It posible load image from files with current webpack config (with publicPath=/)?
<bountysource-plugin>
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource. </bountysource-plugin>
Issue Analytics
- State:
- Created 8 years ago
- Comments:10
Top Results From Across the Web
Bug with css-loader / style-loader - javascript - Stack Overflow
I'm having a problem that is happening to me in two differentes PC's. For my project I've installed for development the following dependencies: ......
Read more >sass-loader - webpack - JS.ORG
webpack is a module bundler. Its main purpose is to bundle JavaScript files for usage in a browser, yet it is also capable...
Read more >What is the difference between style-loader and mini-css ...
style-loader takes CSS you've imported in your JavaScript files, and injects them as <style></style> tags into the DOM. It's particularly useful for ...
Read more >Webpack with CSS Modules - E.Y. - Medium
sass-loader is a loader for Webpack for compiling SCSS/Sass files. style-loader injects our styles into our DOM. This will put styles into the ......
Read more >bemy-style-loader - npm Package Health Analysis | Snyk
Learn more about bemy-style-loader: package health score, popularity, security, maintenance, versions and ... Bug reports and questions are welcomed here ...
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
@Bogdaan that seems to work for me. What also works is setting publicPath to
publicPath: DEBUG ? 'http://<192.168...>:3000/' : '/'
, rather thanlocalhost
which leads me to think that perhaps my phone or other external device is trying to load assets from somewhere it doesn’t have access too (i.e. it’s own localhost?).@Bogdaan I realize this now, but I guess the point I’m getting at is that the fix using
publicPath
isn’t quite a permanent one so maybe we should look into an alternative? Either way, your fix works, so thanks!