Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Enhance addLessLoader #214

Merged
merged 1 commit into from
May 28, 2020
Merged

feat: Enhance addLessLoader #214

merged 1 commit into from
May 28, 2020

Conversation

edwardwang0302
Copy link
Contributor

Support 4 ways to specific css-modules config.

  1. Use "[local]--[hash:base64:5]" as default localIdentName
addLessLoader()
  1. Compatible with the old way
addLessLoader({
  localIdentName: "[local]--[hash:base64:5]",
  // can't deal with getIdentName
}); 
  1. Use cssModules property in loaderOptions
addLessLoader({
  ...,
  cssModules: {
    localIdentName: "[local]--[hash:base64:5]",
    ...
  }
}); 

  1. Use optional param customCssModules
addLessLoader({},  {
  localIdentName: "[local]--[hash:base64:5]",
  ...
}); 

@Anish-Agnihotri Anish-Agnihotri changed the title Enhance addLessLoader feat: Enhance addLessLoader May 28, 2020
@Anish-Agnihotri Anish-Agnihotri merged commit b2eca7d into arackaf:next May 28, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants