broccoli-css-lang-optimizer
This addon causes language specific rulesets in CSS to be extracted into
per-language css files. The original CSS file has the language specific
rulesets removed from it.
This plugin uses postcss-lang-optimizer and adapts it for use in
Broccoli projects.
API
In your Brocfile.js:
var LangOptimizer = require("broccoli-css-lang-optimizer");
var inputNodes = ["static/css"];
var options = { };
module.exports = new LangOptimizer(inputNodes, options);
Options
You can pass options to this plugin to control its behavior.
{
includeBaseFile: true,
filenameForLang: function(baseFilename, lang) {
return baseFilename.replace(".css", "-" + lang + ".css");
},
subtags: false,
langs: ["en", "de", "zh"],
rtlLangs: ["ar", "he"],
rtlOptions: { }
}