Skip to content

Commit bfe7649

Browse files
authored
Merge pull request olegstepura#8 from mohsen1/emit
Emit the created content as well
2 parents dc512ba + 9fc664f commit bfe7649

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

index.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ module.exports = function(source, map) {
1919
// creator.create(..., source) tells the module to operate on the
2020
// source variable. Check API for more details.
2121
creator.create(this.resourcePath, source).then(content => {
22+
// Emit the created content as well
23+
this.emitFile(content.outputFilePath, content.contents || [''], map);
2224
content.writeFile().then(_ => {
2325
callback(null, source, map);
2426
});

0 commit comments

Comments
 (0)