question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Question: bug with style-loader?

See original GitHub issue

When 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:closed
  • Created 8 years ago
  • Comments:10

github_iconTop GitHub Comments

1reaction
arjun-iocommented, Feb 13, 2016

@Bogdaan that seems to work for me. What also works is setting publicPath to publicPath: DEBUG ? 'http://<192.168...>:3000/' : '/', rather than localhost 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?).

0reactions
arjun-iocommented, Feb 13, 2016

@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!

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found