
Research
/Security News
Shai Hulud Strikes Again (v2)
Another wave of Shai-Hulud campaign hits npm.
eleventy-plugin-fluid-sass
Advanced tools
Eleventy plugin which compiles sass for Fluid Project websites.
Eleventy plugin which compiles sass for Fluid Project websites.
Add eleventy-plugin-fluid-sass to your Eleventy-based static site by running:
npm install --save eleventy-plugin-fluid-sass
Then, in your Eleventy configuration file (usually eleventy.config.js), load the plugin as follows:
import fluidSassPlugin from "eleventy-plugin-fluid-sass";
export default function (eleventyConfig) {
eleventyConfig.addPlugin(fluidSassPlugin);
};
eleventy-plugin-fluid-sass includes configuration for processing Sass files using Sass
and LightningCSS.
By default, any Sass files with the .scss extension found in the
./src/assets/styles/ directory or its children will be processed unless the filename begins with an underscore (_).
Options for Sass may be modified by passing values when registering eleventy-plugin-fluid-sass
in your config:
import fluidSassPlugin from "eleventy-plugin-fluid-sass";
export default function (eleventyConfig) {
- eleventyConfig.addPlugin(fluidSassPlugin);
+ eleventyConfig.addPlugin(fluidSassPlugin, {
+ browserslist: '> 1.5%'
+ });
};
Default values are as follows:
let options = {
/* Where should Eleventy look for Sass files to process? */
basePath: `./${eleventyConfig.dir.input || "src"}/assets/styles`,
/* See: https://lightningcss.dev/minification.html */
minify: true,
/* Not yet supported, see https://github.com/fluid-project/eleventy-plugin-fluid/issues/170 */
sourceMap: false,
/* See: https://lightningcss.dev/transpilation.html#draft-syntax */
drafts: {
nesting: true
},
/* A Browserslist configuration string (see: https://browsersl.ist) */
browserslist: "> 1%"
};
Note that all of these will be passed to LightningCSS, not Sass, with the exception of basePath, enabled, and sourceMap.
If you wish to disable Browserslist altogether, you can pass an empty array ([]) to the browserslist key.
For more options, see the Sass and LightningCSS docs.
This package uses Conventional Commits, enforced with commitlint. This facilitates releasing new versions of the package via Release Please. To cut a release, merge the current release pull request.
This will tag an appropriate semantic version based on the nature of the recent commits to the project and update the changelog.
You will then need to publish the updated version to the npm registry. This requires an npm account with appropriate maintainer permissions. To publish the package, run:
npm publish
For more information on publishing to npm, see the npm publish documentation.
eleventy-plugin-fluid-sasseleventy-plugin-fluid-sass is based on other publicly available software, categorized by license:
FAQs
Eleventy plugin which compiles sass for Fluid Project websites.
The npm package eleventy-plugin-fluid-sass receives a total of 2 weekly downloads. As such, eleventy-plugin-fluid-sass popularity was classified as not popular.
We found that eleventy-plugin-fluid-sass demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers 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.

Research
/Security News
Another wave of Shai-Hulud campaign hits npm.

Product
Add real-time Socket webhook events to your workflows to automatically receive software supply chain alert changes in real time.

Security News
ENISA has become a CVE Program Root, giving the EU a central authority for coordinating vulnerability reporting, disclosure, and cross-border response.