{"action":"created","issue":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/569","labels_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/569/labels{/name}","comments_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/569/comments","events_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/569/events","html_url":"https://github.com/bem/bem-forum-content-ru/issues/569","id":103187645,"number":569,"title":"Проблемы со сборкой BEMHTML и HTML  после обновления enb-bem-techs","user":{"login":"Hurtsok","id":935692,"avatar_url":"https://avatars.githubusercontent.com/u/935692?v=3","gravatar_id":"","url":"https://api.github.com/users/Hurtsok","html_url":"https://github.com/Hurtsok","followers_url":"https://api.github.com/users/Hurtsok/followers","following_url":"https://api.github.com/users/Hurtsok/following{/other_user}","gists_url":"https://api.github.com/users/Hurtsok/gists{/gist_id}","starred_url":"https://api.github.com/users/Hurtsok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hurtsok/subscriptions","organizations_url":"https://api.github.com/users/Hurtsok/orgs","repos_url":"https://api.github.com/users/Hurtsok/repos","events_url":"https://api.github.com/users/Hurtsok/events{/privacy}","received_events_url":"https://api.github.com/users/Hurtsok/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/bugs","name":"bugs","color":"f7c6c7"},{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/deps.js","name":"deps.js","color":"bfe5bf"},{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/labels/enb","name":"enb","color":"bfe5bf"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-08-26T06:35:35Z","updated_at":"2015-08-28T00:37:58Z","closed_at":null,"body":"Привет! Обновил `enb-bem-techs@1.0.4`  до версии `2.0.0` и начались проблемы со сборкой bemhml и html.\r\nСама сборка проходит без ошибок, но по окончании сборки я имею пустой html файл и странно собранный bemhtml.\r\nВсе шаблоны в нем продублированы по 2 раза. Циклические зависимости `mustDeps` отсутствуют в `deps` файлах, т.к я использую ключ  `strict: true `\r\n\r\nПочему html файл пустой и почему шаблоны продублированы 2 раза?\r\n\r\nПример сборки бандлов:\r\n```js\r\n    config.nodes(bemPages, function(nodeConfig) {\r\n        var path = nodeConfig.getPath();\r\n        nodeConfig.addTechs([\r\n            [ require('enb-bem-techs/techs/levels'), { levels: getLevels(config, path) } ],\r\n            [ techs.fileProvider, { target: '?.bemjson.js' } ],\r\n            [ enbBemTechs.bemjsonToBemdecl ],\r\n            [ enbBemTechs.depsOld, { strict: true } ],\r\n            [ enbBemTechs.files ],\r\n            //CSS\r\n            [ techs.stylus, { target: '?.css', autoprefixer: { browsers: [ \"> 2%\", \"last 2 versions\", \"Firefox ESR\", \"Opera 12.1\", \"Android >= 4\", \"iOS >= 5\" ] } } ],\r\n            //BEMHTML\r\n            [ techs.bemhtml, { sourceSuffixes: [ 'bemhtml', 'bemhtml.js' ] } ],\r\n            //HTML\r\n            [ techs.htmlFromJSON ],\r\n            [ techs.htmlBeautify ],\r\n            //client JS\r\n            [ techs.browserJs ],\r\n            [ techs.fileMerge, { target: '?.pre.js', sources: [ '?.bemhtml.js', '?.browser.js' ] } ],\r\n            [ techs.prependYm, { source: '?.pre.js' }]\r\n        ]);\r\n\r\n        nodeConfig.mode('production', function(nodeConfig){\r\n            //CSS\r\n            nodeConfig.addTechs([\r\n                [ techs.stylus, { target: '_?.css', autoprefixer: { browsers: [ \"> 2%\", \"last 2 versions\", \"Firefox ESR\", \"Opera 12.1\", \"Android >= 4\", \"iOS >= 5\" ] }, compress: true } ]\r\n            ]);\r\n            nodeConfig.addTechs([\r\n                //BORSCHIK\r\n                [ techs.borschik,  { sourceTarget: '?.js', destTarget: '_?.js', freeze: true, minify: true} ]\r\n            ]);\r\n            nodeConfig.addTargets([ '_?.css', '_?.js' ]);\r\n        })\r\n\r\n        nodeConfig.addTargets([ '?.js', '?.css', '?.html', '?.browser.js', '?.beauty.html' ]);\r\n    });\r\n```"},"comment":{"url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/comments/135592451","html_url":"https://github.com/bem/bem-forum-content-ru/issues/569#issuecomment-135592451","issue_url":"https://api.github.com/repos/bem/bem-forum-content-ru/issues/569","id":135592451,"user":{"login":"Hurtsok","id":935692,"avatar_url":"https://avatars.githubusercontent.com/u/935692?v=3","gravatar_id":"","url":"https://api.github.com/users/Hurtsok","html_url":"https://github.com/Hurtsok","followers_url":"https://api.github.com/users/Hurtsok/followers","following_url":"https://api.github.com/users/Hurtsok/following{/other_user}","gists_url":"https://api.github.com/users/Hurtsok/gists{/gist_id}","starred_url":"https://api.github.com/users/Hurtsok/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hurtsok/subscriptions","organizations_url":"https://api.github.com/users/Hurtsok/orgs","repos_url":"https://api.github.com/users/Hurtsok/repos","events_url":"https://api.github.com/users/Hurtsok/events{/privacy}","received_events_url":"https://api.github.com/users/Hurtsok/received_events","type":"User","site_admin":false},"created_at":"2015-08-28T00:37:58Z","updated_at":"2015-08-28T00:37:58Z","body":"@tadatuta В доке по миграции на 2 версию написано, что: \r\n>Файлы должны быть отсортированы сперва по уровню, и только потом по суффиксу."}}