
Product
Reachability for Ruby Now in Beta
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.
svelte-windicss-preprocess
Advanced tools
A Svelte Preprocessor to compile tailwindcss at build time based on windicss compiler.
A svelte preprocessor for windicss. Windi CSS is a next generation utility-first CSS framework.
If you are already familiar with Tailwind CSS, think about Windi CSS as an on-demanded alternative to Tailwind, which provides faster load times, fully compatible with Tailwind v2.0 and with a bunch of additional cool features.
Now we have a great playground, you can try it online before installing it.
npm i -D svelte-windicss-preprocess
// svelte.config.js
module.exports = {
preprocess: require("svelte-windicss-preprocess").preprocess({
compile: false,
prefix: 'windi-',
}),
};
| option | description |
|---|---|
| config | string that represent the location of windicss configuration |
| safeList | array of classes windicss should include even if not used in markup |
| compile | boolean wether windicss runs in compilation or interpretion mode |
| prefix | class prefix if preprocessor is running in compilation mode |
| silent | boolean of logging |
// rollup.config.js
export default {
// ...
plugins: [
svelte({
// ...
preprocess: [
require('svelte-windicss-preprocess').preprocess({
config: 'windi.config.js', // windi config file path (optional)
compile: true, // false: interpretation mode; true: compilation mode (optional)
prefix: 'windi-', // set compilation mode style prefix
safeList: ["bg-gray-600", "text-white"] // (optional)
})
],
}),
],
// ...
};
// svelte.config.js
module.exports = {
preprocess: [
require('svelte-windicss-preprocess').preprocess({
config: 'windi.config.js', // windi config file path (optional)
compile: true, // false: interpretation mode; true: compilation mode (optional)
prefix: 'windi-', // set compilation mode style prefix
safeList: ["bg-gray-600", "text-white"] // (optional)
})
],
};
// rollup.config.js
export default {
client: {
// ...
plugins: [
// ...
svelte({
// ...
preprocess: [
require('svelte-windicss-preprocess').preprocess({
config: 'windi.config.js', // windi config file path (optional)
compile: true, // false: interpretation mode; true: compilation mode (optional)
prefix: 'windi-', // set compilation mode style prefix
safeList: ["bg-gray-600", "text-white"] // (optional)
})
],
}),
// ...
],
},
server: {
// ...
plugins: [
// ...
svelte({
// ...
preprocess: [
require('svelte-windicss-preprocess').preprocess({
config: 'windi.config.js', // windi config file path (optional)
compile: true, // false: interpretation mode; true: compilation mode (optional)
prefix: 'windi-', // set compilation mode style prefix
safeList: ["bg-gray-600", "text-white"] // (optional)
})
],
}),
// ...
],
},
};
FAQs
A Svelte Preprocessor to compile tailwindcss at build time based on windicss compiler.
We found that svelte-windicss-preprocess demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 4 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
Reachability analysis for Ruby is now in beta, helping teams identify which vulnerabilities are truly exploitable in their applications.

Research
/Security News
Malicious npm packages use Adspect cloaking and fake CAPTCHAs to fingerprint visitors and redirect victims to crypto-themed scam sites.

Security News
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.