
Security News
CVE Volume Surges Past 48,000 in 2025 as WordPress Plugin Ecosystem Drives Growth
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.
vite-plugin-rics
Advanced tools
Vite plugin for the rics CSS preprocessor. Enables importing .rics files directly in your Vite projects.
npm install vite-plugin-rics
// vite.config.ts
import { defineConfig } from "vite";
import { ricsPlugin } from "vite-plugin-rics";
export default defineConfig({
plugins: [ricsPlugin()],
});
Import .rics files in your code:
// main.ts
import "./styles.rics"; // Compiled to CSS and injected
Use ?raw to import the source content without compilation:
import source from "./styles.rics?raw"; // Raw rics source as string
This is useful for editors, playgrounds, or when you need the unprocessed source.
ricsPlugin({
// Compilation options passed to rics compiler
minify: false,
timeout: 5000,
maxIterations: 10000,
});
| Option | Type | Default | Description |
|---|---|---|---|
minify | boolean | false | Minify compiled CSS |
timeout | number | 5000 | Max compilation time (ms) |
maxIterations | number | 10000 | Max loop iterations |
The plugin transforms .rics files to CSS during Vite's build process:
.rics filesIn development mode, changes to .rics files trigger hot module replacement.
Add type declarations for .rics imports:
// vite-env.d.ts or global.d.ts
declare module "*.rics" {
const css: string;
export default css;
}
declare module "*.rics?raw" {
const source: string;
export default source;
}
MIT
Built by Better Lyrics
FAQs
Vite plugin for rics CSS preprocessor
We found that vite-plugin-rics demonstrated a healthy version release cadence and project activity because the last version was released less than 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.

Security News
CVE disclosures hit a record 48,185 in 2025, driven largely by vulnerabilities in third-party WordPress plugins.

Security News
Socket CEO Feross Aboukhadijeh joins Insecure Agents to discuss CVE remediation and why supply chain attacks require a different security approach.

Security News
Tailwind Labs laid off 75% of its engineering team after revenue dropped 80%, as LLMs redirect traffic away from documentation where developers discover paid products.