
Product
Introducing Tier 1 Reachability: Precision CVE Triage for Enterprise Teams
Socket’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
postcss-fs-css
Advanced tools
A postcss-plugin for transforming your CSS to FirstSpirit compatible CSS
A PostCSS-plugin transforming plain CSS to FirstSpirit compatible CSS
This plugin is highly inspired by the grunt-fscss plugin. It brings the functionality to PostCSS to integrate it within any workflow you like using PostCSS.
Install the plugin by typing npm install --save-dev postcss-fs-css
. After that you cann use the plugin like any other
PostCSS plugin.
Example:
const postcss = require('postcss');
postcss([
require('postcss-fs-css')()
]);
Within the function-call you can pass a configuration object.
The configuration is fairly easy. There are three options in the configuration object:
abs
Here you can simply add a string which is passed in the CMS_REF
function as the abs
argument.
cacheStrategy
When configuring the plugin to use the revision
caching strategy there is a get-parameter with a FirstSpirit function
generating a revision-id added.
fileMapping
This option is an object specifying a mapping between the files and the reference IDs within FirstSpirit CMS. The key is
the name of the file, the value is either a string specifying the reference ID associated or an object with the reference
and the corresponding abs
.
Example:
const postcss = require('postcss');
postcss([
require('postcss-fs-css')({
'fonts/sample.woff': {
referenceName: 'sample_1',
abs: 'test'
}
})
]);
FAQs
A postcss-plugin for transforming your CSS to FirstSpirit compatible CSS
We found that postcss-fs-css 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’s new Tier 1 Reachability filters out up to 80% of irrelevant CVEs, so security teams can focus on the vulnerabilities that matter.
Research
/Security News
Ongoing npm supply chain attack spreads to DuckDB: multiple packages compromised with the same wallet-drainer malware.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.