Introducing The Sweep: OX’s New Live Security Research Series
Register Now
Breaking: The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Read the Report
Are you exposed? Connect your apps in minutes.
Scan your apps free

vite-plugin-drupal-sass

Latest version: v0.1.0

Overview

Last scanned
24 Nov 2026
Published
24 Nov 2026
npm package Publisher: gordonh
0 Stars
0 Forks
2 Versions
JavaScript Repo language

Scan summary

vite-plugin-drupal-sass was last scanned on 24 Nov 2026 at version 0.1.0. Risk score 0 of 100. No malicious behavior was detected.

  • Releases: 2 versions, all published on 24 Nov 2026.
  • Findings: No rules fired in version 0.1.0.

Versions

2 versions published
Versions and the rules that fired in each
VersionPublishedStatus
0.1.0 LATEST 24 Nov 2026 No rules fired
0.0.0-stage 24 Nov 2026 Not shown

No rules fired in 0.1.0

Findings

Findings for v0.1.0. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.

The score describes 0.1.0; other versions have their own rules, not their own score.

README

The publisher’s own README, as collected from the registry.

vite-plugin-drupal-sass

Compiles existing Drupal SCSS with Vite the way the Sass CLI did, so it doesn't need converting to the module system or to Vite's URL rules.

npm install --save-dev vite-plugin-drupal-sass sass-embedded
import drupalSass from 'vite-plugin-drupal-sass';

export default defineConfig({
  plugins: [
    drupalSass({
      loadPaths: ['node_modules', 'web/themes/custom'],
      moduleTheme: 'my_theme',
    }),
  ],
});
  • Relative @import / @use are resolved by Sass itself, and url()s stay as written, relative to the compiled CSS, as with the Sass CLI. Vite resolves them from the entry file, which matches the CLI as long as the entry and the old CSS output directory are at the same depth (e.g. scss/style.scss → css/style.css).
  • loadPaths replaces --load-path, and the webpack-style ~package/... prefix is accepted.
  • Deprecation warnings that older code triggers on every build are silenced.

Preloaded partials

Variables, mixins and functions usable in every SCSS file without importing them. Each module, theme and profile lists its own in its .info.yml:

vite:
  preload:
    functions: [bootstrap/scss/functions]
    variables: [scss/_variables.scss]
    mixins: [scss/_mixins.scss]

Paths are relative to the extension, or to the load paths; a plain list is the same as mixins. Preloaded files should hold no CSS rules, as those would be output into every compiled file.

A file gets one theme's preloads: the nearest theme with preload, from its own up the base theme: chain (each theme's variables file imports the level above itself). A theme's files get their theme's. Files in modules and profiles get a theme's and then their own: moduleTheme's, or for a module in a site's own directory (web/sites/<site>/modules), that site's theme from siteThemes. In order:

  1. functions, the theme's then the module's;
  2. variables, the module's then the theme's, so the module's values come before the theme's !defaults;
  3. mixins, the theme's then the module's.

They're loaded with @use ... as *, so this also works in files that start with @use. vite: { preload: false } turns preloading off for an extension's files.

Options

Option Default
loadPaths ['node_modules'] As the Sass CLI's --load-path
preload {} Partials preloaded before every theme's, in the same shape as in .info.yml
moduleTheme null The theme whose preloads modules and profiles get
siteThemes {} The theme per site directory, for modules in web/sites/<site>/; keys are names or globs (*, ?, {a,b}), an exact name winning, then the first matching glob
dirs extensionDirs(root) The directories to look for extensions in
silenceDeprecations ['import', 'global-builtin', 'color-functions', 'slash-div', 'if-function', 'abs-percent'] Sass deprecations not to warn about; [] shows them all

Needs sass-embedded (or sass) installed, as Vite does for SCSS.

OX Radar and Response Center

Find threats in your stack.

OX Radar can check high-priority threats, like critical package CVEs, against your context.

Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.

Where it’s listed

The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).

  • npm vite-plugin-drupal-sass

References

The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.

Scan your whole stack

Group 1261154050 1
Group 1261154050
 

From OX Research Newsroom

Copy of Template Design OX Blog (1)
Research

Thousands Of GitHub Accounts Hijacked With wfx-loot CI Secret Stealing Malware Via GitHub Actions & npm

Vulnerability Insights

Compromised Claude Code extensions (versions 2.1.312 & 2.1.313) in Cursor try to install a backdoor

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?
Vulnerability Insights

The 2026 Vulnpocalypse Hits PHP: Four Critical RCEs, but How Dangerous Are They?

Frame 2085668439 (1)
Group 1261154229