
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.
vite-plugin-imba
Advanced tools
The official [Imba](https://imba.io) plugin for [Vite](https://vitejs.dev).
The official Imba plugin for Vite.
// vite.config.js
import { defineConfig } from 'vite';
import { imba } from 'vite-plugin-imba';
export default defineConfig({
plugins: [
imba({
/* plugin options */
})
]
});
Besides inline options in Vite config, vite-plugin-imba
will also automatically resolve options from an Imba config file if it exists (imbaconfig.json
or imba.config.js
). The JavaScript one is recommended since we'll add a defineConfig
helper function to provide autocomplete for the options in the future
To set a specific config file, use the configFile
inline option. The path can be absolute or relative to the Vite root. For example:
// vite.config.js
export default defineConfig({
plugins: [
imba({
configFile: 'my-imba-config.json'
})
]
});
A basic Imba config looks like this:
// imba.config.js
export default {
// imba options
theme: {}
};
Use configFile: false
to prevent vite-plugin-imba
from reading the config file or restarting the Vite dev server when it changes.
// vite.config.js
export default defineConfig({
plugins: [
imba({
configFile: false
// your imba config here
})
]
});
Warning: You are responsible to provide the complete inline config when used.
These options are specific to the Imba compiler.
// vite.config.js
export default defineConfig({
plugins: [imba({
compilerOptions: {
theme: {
colors: {
"myblue": "blue",
"lilac": {
"2": "hsl(253, 100%, 95%)",
"4": "hsl(252, 100%, 86%)"
},
}
}
}
})],
});
Imba will take care of generating color variants from 1 to 9 based on the provided values.
In order to use the plugin both in the client and the server (with SSR and hydration), see the example in ../e2e-tests/vite-ssr-esm
FAQs
The official [Imba](https://imba.io) plugin for [Vite](https://vitejs.dev).
We found that vite-plugin-imba demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 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.
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.