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.

How to disable url resolve when compiling .less?

See original GitHub issue

How can I disable image path resolution when compiling less files? right now I’m getting

These dependencies were not found in node_modules:

* ./images/login_cover.jpg
* ./images/logo_icon_light.png
* ./images/backgrounds/seamless.png

because the images are in public folder.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:1
  • Comments:24 (5 by maintainers)

github_iconTop GitHub Comments

46reactions
JeffreyWaycommented, Feb 19, 2017

It’s not an issue. It’s a feature of Webpack’s.

You can disable it with mix.options({ processCssUrls: false }).

11reactions
maengkomcommented, Jan 27, 2017

I’m just copy images folder in less folder also

Read more comments on GitHub >

github_iconTop Results From Across the Web

Disable resolving for CSS/SASS/SCSS/LESS URLs in ...
I think Webpack 5 css-loader resolves this url() calls by default, and you need to disable it manually: loader: "css-loader", options: ...
Read more >
CSS URL Rewriting | Laravel Mix Documentation
Url rewriting can be controlled on a per-file basis by specifying the processUrls option. This option will take precedence over what has been...
Read more >
less-loader | webpack - JS.ORG
Compiles Less to CSS. ... All values enable source map generation except eval and false value. ... Default resolver options can be modified...
Read more >
Compiling Assets (Mix) - The PHP Framework For Web Artisans
Though disabled by default, source maps may be activated by calling the mix.sourceMaps() method in your webpack.mix.js file. Though it comes with a...
Read more >
css-loader
To disable url() resolving by css-loader set the option to false . To be compatible with existing css files (if not in CSS...
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