Created
December 10, 2014 22:03
-
-
Save tadatuta/b464d4a16ddf28c81795 to your computer and use it in GitHub Desktop.
enb conf for bemtree
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -15,7 +15,7 @@ var techs = { | |
prependYm: require('enb-modules/techs/prepend-modules'), | |
// bemtree | |
- // bemtree: require('enb-bemxjst/techs/bemtree-old'), | |
+ bemtree: require('enb-bemxjst/techs/bemtree-old'), | |
// bemhtml | |
bemhtml: require('enb-bemxjst/techs/bemhtml-old'), | |
@@ -40,8 +40,7 @@ module.exports = function(config) { | |
nodeConfig.addTechs([ | |
// essential | |
[enbBemTechs.levels, { levels: levels }], | |
- [techs.fileProvider, { target: '?.bemjson.js' }], | |
- [enbBemTechs.bemjsonToBemdecl], | |
+ [techs.fileProvider, { target: '?.bemdecl.js' }], | |
[enbBemTechs.deps], | |
[enbBemTechs.files], | |
@@ -54,11 +53,10 @@ module.exports = function(config) { | |
}], | |
// bemtree | |
- // [tech.bemtree, { devMode: process.env.BEMTREE_ENV === 'development' }], | |
+ [techs.bemtree, { devMode: process.env.BEMTREE_ENV === 'development' }], | |
// bemhtml | |
[techs.bemhtml, { devMode: process.env.BEMHTML_ENV === 'development' }], | |
- [techs.htmlFromBemjson], | |
// client bemhtml | |
[enbBemTechs.depsByTechToBemdecl, { | |
@@ -94,6 +92,6 @@ module.exports = function(config) { | |
[techs.borschik, { sourceTarget: '?.css', destTarget: '_?.css', tech: 'cleancss', freeze: true, minify: isProd }] | |
]); | |
- nodeConfig.addTargets([/* '?.bemtree.js', */ '?.html', '_?.css', '_?.js']); | |
+ nodeConfig.addTargets(['?.bemtree.js', '?.bemhtml.js', '_?.css', '_?.js']); | |
}); | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment