-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for custom CSS techs #60
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Не хватает явного переопределения опций про то, откуда взять файлы и куда записать результат.
Смотри пример:
enb-bem-specs/lib/node-configurator.js
Lines 62 to 65 in 40496ad
var templateEngineOpts = _.assign({}, templateEngine.templateOptions, { | |
target: '?.browser.template.js', | |
filesTarget: '?.template.files' | |
}); |
Т.к. раньше использовалась конкретная технология это было не обязательно.
Разные технологии могут иметь разные дефолтные значения.
40496ad
to
05493d1
Compare
🆙 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
остались небольшие правки
@@ -42,17 +42,19 @@ | |||
"enb": ">= 0.13.0 < 2.0.0", | |||
"enb-bh": "1.2.0", | |||
"enb-magic-factory": ">= 0.3.0 < 1.0.0", | |||
"enb-postcss": "^1.1.0", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
точная версия
"eslint": "2.5.3", | ||
"eslint-config-pedant": "0.1.1", | ||
"jscs": "1.11.0" | ||
"jscs": "1.11.0", | ||
"postcss-import": "^8.1.2" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
точная версия
@@ -207,7 +211,7 @@ exports.configure = function (config, options) { | |||
} | |||
|
|||
// CSS | |||
nodeConfig.addTech(css); | |||
nodeConfig.addTech([cssEngine.tech, _.assign({}, cssEngine.options, { target: '?.css' })]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
filesTarget: '?.files'
тоже надо закрепить. Если кто-то передаст другое значение, то сборка сломается.
05493d1
to
d254444
Compare
No description provided.