Skip to content
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

Merged
merged 1 commit into from
Sep 23, 2016
Merged

Support for custom CSS techs #60

merged 1 commit into from
Sep 23, 2016

Conversation

tadatuta
Copy link
Member

No description provided.

Copy link
Member

@blond blond left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Не хватает явного переопределения опций про то, откуда взять файлы и куда записать результат.

Смотри пример:

var templateEngineOpts = _.assign({}, templateEngine.templateOptions, {
target: '?.browser.template.js',
filesTarget: '?.template.files'
});

Т.к. раньше использовалась конкретная технология это было не обязательно.

Разные технологии могут иметь разные дефолтные значения.

@tadatuta
Copy link
Member Author

🆙

Copy link
Member

@blond blond left a 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",
Copy link
Member

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"
Copy link
Member

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' })]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

filesTarget: '?.files' тоже надо закрепить. Если кто-то передаст другое значение, то сборка сломается.

@blond blond merged commit a1498e7 into master Sep 23, 2016
@blond blond deleted the custom-css-techs branch September 23, 2016 17:46
@blond blond removed the in progress label Sep 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants