How to disable url resolve when compiling .less?
See original GitHub issueHow 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:
- Created 7 years ago
- Reactions:1
- Comments:24 (5 by maintainers)
Top 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 >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
It’s not an issue. It’s a feature of Webpack’s.
You can disable it with
mix.options({ processCssUrls: false })
.I’m just copy images folder in less folder also