Skip to content

addLessLoader does not work with css-loader ^3.0.0 #134

@m-weeks

Description

@m-weeks

So with css-loader version 3+, the option localIdentName is no longer supported, and the modules option has become an object that can contain the localIdentName option.

This causes addLessLoader to error if using this version of css-loader because the old localIdentName option is still being given:

    {
      test: lessModuleRegex,
      use: getLessLoader({
        importLoaders: 2,
        modules: true,
        localIdentName: localIdentName
      })
    }

You can see the change described above here:
https://github.com/webpack-contrib/css-loader/blob/master/CHANGELOG.md#breaking-changes

Metadata

Metadata

Assignees

No one assigned

    Labels

    🧨 breaking changeRequire a major breaking release to implement.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions