Skip to content

Commit 1f86682

Browse files
committed
Create index.js
1 parent 30855d4 commit 1f86682

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
var DtsCreator = require('typed-css-modules');
2+
3+
var creator = new DtsCreator();
4+
5+
module.exports = function(input, map) {
6+
this.cacheable && this.cacheable();
7+
var callback = this.async();
8+
creator.create(this.resourcePath).then(content => {
9+
content.writeFile().then(_ => {
10+
callback(null, input, map);
11+
});
12+
});
13+
};

0 commit comments

Comments
 (0)