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
|`localIdentName`|`{String}`|`"[local]-[hash:base64:6]"`| A rule using any available token from [webpack interpolateName](https://github.com/webpack/loader-utils#interpolatename)|
67
67
|`includePaths`|`{Array}`|`[]` (Any) | An array of paths to be processed |
68
+
|`getLocalIdent`|`Function`|`undefined`| Generate the classname by specifying a function instead of using the built-in interpolation |
68
69
70
+
### `getLocalIdent`
71
+
72
+
Function to generate the classname instead of the built-in function.
73
+
74
+
```js
75
+
functiongetLocalIdent(
76
+
context: {
77
+
context, // the context path
78
+
resourcePath, // path + filename
79
+
},
80
+
localIdentName: {
81
+
template, // the template rule
82
+
interpolatedName, // the built-in generated classname
0 commit comments