Skip to content

Commit 9d34fd3

Browse files
mightyalekseyAlexey Litvinov
authored andcommitted
raw preset implementation
1 parent 0a5c7bd commit 9d34fd3

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

preset.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
const hook = require('.');
2+
const lookup = require('lookup-fs');
3+
4+
lookup('css-modules-file.js', (err, cssModulesFilePath) => {
5+
if (err) {
6+
throw new Error('Unable to find css-modules-file.js');
7+
}
8+
9+
hook(require(cssModulesFilePath));
10+
});

0 commit comments

Comments
 (0)