![Introducing Enhanced Alert Actions and Triage Functionality](https://cdn.sanity.io/images/cgdhsj6q/production/fe71306d515f85de6139b46745ea7180362324f0-2530x946.png?w=800&fit=max&auto=format)
Product
Introducing Enhanced Alert Actions and Triage Functionality
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
broccoli-css-lang-optimizer
Advanced tools
Readme
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.
In your Brocfile.js:
var LangOptimizer = require("broccoli-css-lang-optimizer");
var inputNodes = ["static/css"]; // or wherever you put your CSS files.
var options = { }; // Options for the plugin. See below.
module.exports = new LangOptimizer(inputNodes, options);
You can pass options to this plugin to control its behavior.
{
// includeBaseFile controls whether the base css is included
// in every language-specific output file. When set to `false`,
// only the lang-specific selectors are output to the language
// specific file. Defaults to `true`.
includeBaseFile: true,
// filenameForLang is optional, when omited the filename is "<basename>_<lang>.css"
filenameForLang: function(baseFilename, lang) {
return baseFilename.replace(".css", "-" + lang + ".css");
},
// Passed along to the underlying postcss-lang-optimizer plugin. Defaults to false.
subtags: false,
// Ensures a file is written for each of these languages (and only these languages)
// even if they are or are not specified in the source CSS.
// If omitted, languages are discovered from the source CSS file.
// This property can also be set to a function that returns an array of langs.
langs: ["en", "de", "zh"],
// The folowing langs will be RTL processed with rtlcss. Highly
// recommend not setting `includeBaseFile` to `false` when using rtl flipping.
rtlLangs: ["ar", "he"],
// The following options will be passed to the rtlcss plugin:
rtlOptions: { }
}
FAQs
Extract Lang-specific CSS rulesets to lang-specific files.
The npm package broccoli-css-lang-optimizer receives a total of 0 weekly downloads. As such, broccoli-css-lang-optimizer popularity was classified as not popular.
We found that broccoli-css-lang-optimizer demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports four distinct alert actions instead of the previous two, and alert triaging allows users to override the actions taken for all individual alerts.
Security News
Polyfill.io has been serving malware for months via its CDN, after the project's open source maintainer sold the service to a company based in China.
Security News
OpenSSF is warning open source maintainers to stay vigilant against reputation farming on GitHub, where users artificially inflate their status by manipulating interactions on closed issues and PRs.