You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Less-loader has the option 'relativeUrls'.
I need to use it to be able to use a library where assets (fonts, images...) are not relative.
to make it work, I can modify your file 'lib/loaders/less.js' and add relativeUrls: false,.
Example :
This PR was merged into the master branch.
Discussion
----------
Add options callback to Encore.enableLessLoader()
This PR allows to add a callback as the first argument of `Encore.enableLessLoader()` (fixes#118).
I didn't notice that one was missing too when working on #130.
Example :
```js
Encore.enableLessLoader((options) => {
options.relativeUrls = false;
});
```
Commits
-------
fdf72da Add options callback to Encore.enableLessLoader()
The Less-loader has the option 'relativeUrls'.
I need to use it to be able to use a library where assets (fonts, images...) are not relative.
to make it work, I can modify your file 'lib/loaders/less.js' and add
relativeUrls: false,
.Example :
I would be nice if that option could be an option of your 'enableLessLoader' function !
Example :
The text was updated successfully, but these errors were encountered: