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
The [path] value is extracted from options.context (which is referring to your webpack config) and a relative path is generated to the loaderContext.resourcePath (which is referring to the path of the resource being loaded).
There appears to be no way to overwrite this logic.
@sokra it would be nice to have a callback like the one provided by postcss-modules, generateScopedName.
p.s. In my particular case, the _- suffix turned out to be an indication of an unexpected options.context path.
@gajus Could you try @timse suggestion ? Otherwise has you already stated, this is likely to be a a won't fix 😛. Please feel free to reopen if there is a way I'm missing out
Uh oh!
There was an error while loading. Please reload this page.
I have a loader configured as:
Which generates path as:
The "_-" at the beginning and "-" at the end of the
[path]
value are undesirable.Is there a way to control the generation of this variable?
This is causing compatibility issues with https://github.com/css-modules/css-modules-require-hook
The text was updated successfully, but these errors were encountered: