Skip to content

Commit aea8cd8

Browse files
committed
fix: module.resource is not available for css files #534
1 parent 359c00f commit aea8cd8

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/CssModule.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ class CssModule extends webpack.Module {
3333
assetsInfo,
3434
};
3535
this.buildMeta = {};
36+
this.resource = this.nameForCondition();
3637
}
3738

3839
// no source() so webpack 4 doesn't do add stuff to the bundle

0 commit comments

Comments
 (0)