Skip to content

Less-Loader, we need the "relativeUrls" option ! #118

Closed
@damienfa

Description

@damienfa

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 :

...cssLoader.getLoaders(webpackConfig, ignorePostCssLoader),
            {
                loader: 'less-loader',
                options: {
                    relativeUrls: false,
                    sourceMap: webpackConfig.useSourceMaps
                }
            },

I would be nice if that option could be an option of your 'enableLessLoader' function !
Example :

.enableSassLoader(function(sassOptions) {}, {
        relativeUrls: false
    })

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions