Skip to content

feat: Enhance addLessLoader#214

Merged
Anish-Agnihotri merged 1 commit intoarackaf:nextfrom
edwardwang0302:next
May 28, 2020
Merged

feat: Enhance addLessLoader#214
Anish-Agnihotri merged 1 commit intoarackaf:nextfrom
edwardwang0302:next

Conversation

@edwardwang0302
Copy link
Copy Markdown
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