
Security News
n8n Tops 2025 JavaScript Rising Stars as Workflow Platforms Gain Momentum
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.
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
n8n led JavaScript Rising Stars 2025 by a wide margin, with workflow platforms seeing the largest growth across categories.

Security News
The U.S. government is rolling back software supply chain mandates, shifting from mandatory SBOMs and attestations to a risk-based approach.

Security News
crates.io adds a Security tab backed by RustSec advisories and narrows trusted publishing paths to reduce common CI publishing risks.