fix(v2): dev css modules classnames should include filename (#5034)

This commit is contained in:
Sébastien Lorber 2021-06-22 14:51:41 +02:00 committed by GitHub
parent 8bda3b2dbf
commit 4e88ea0a1a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -228,7 +228,7 @@ export function createBaseConfig(
modules: {
localIdentName: isProd
? `[local]_[contenthash:base64:4]`
: `[local]_[path]`,
: `[local]_[path][name]`,
exportOnlyLocals: isServer,
},
importLoaders: 1,