You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
That seems to be loaders' or pug's problem, but I have plans to compile pug automatically into one file before publishing to npm, when I'll get to it, this issue would be fixed I guess.
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.
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.
The text was updated successfully, but these errors were encountered: