-
Notifications
You must be signed in to change notification settings - Fork 64
Open
Description
Hi, I have problem with bemto.pug when using with webpack 2 pug-loader. All files with only unbuffered code inside (helpers.pug and tag_metadata.pug) don't includes/compiles.
Only solution that I find is to take all unbuffered code from helpers.pug and tag_metadata.pug to index.pug and write it in one line each.
// don't work
-
var get_bemto_tag_type = function(tagName) {
var result = 'block'
if (bemto_tag_metadata[tagName]) {
result = bemto_tag_metadata[tagName].type || result;
}
return result;
}
// work
- var get_bemto_tag_type = function(tagName) { var result = 'block'; if (bemto_tag_metadata[tagName]) { result = bemto_tag_metadata[tagName].type || result; } return result; }
It seems to me that the same problem should be with Gulp too. To write plugins it would be ideal if the bemto.pug was one big file.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels