This repository was archived by the owner on Jan 13, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 69
Feedback for "Настройка" #609
Copy link
Copy link
Open
Description
getTechs() возвращает массив подключаемых технологий
exports.getTechs = function() {
return {
'bemjson.js': '',
'js': 'js-i',
'bemhtml.js': '../../bem-bl/blocks-common/i-bem/bem/techs/bemhtml.js',
'priv.js': '../../.bem/techs/priv.js',
'html': '../../bem-bl/blocks-common/i-bem/bem/techs/html'
};
};Неожиданно... { foo: 'bar' } - это массив, Карл. Массив!
Object.prototype.toString.call({}) //"[object Object]"
Object.prototype.toString.call([]) //"[object Array]"Функция getConfig() возвращает объект со свойством bundleBuildLevels
exports.getConfig = function() {
return extend({}, this.__base() || {}, {
bundleBuildLevels: this.resolvePaths([
'../../bem-bl/blocks-common',
'../../bem-bl/blocks-desktop',
'../../blocks'
])
});
};Стоп, у вас { } - это массив с ключами или объект со свойствами?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels