@semcore/process-css-unplugin
v2.0.0
Published
Intergalactic CSS processor plugin.
Downloads
670
Readme
@semcore/process-css-unplugin
This plugin is part of the Intergalactic Design System
🏠 Design system
Install
npm install @semcore/process-css-unpluginOptions
type Options = {
virtualFilePrefix?: string; // Defines the prefix for a virtual CSS file.
isolationSuffix?: string; // Defines new isolation suffix for CSS classes.
}Usage
Vite
import { defineConfig } from 'vite';
import { processCssVitePlugin } from '@semcore/process-css-unplugin';
// https://vitejs.dev/config/
export default defineConfig({
plugins: [
processCssVitePlugin({
virtualFilesPrefix: 'myprefix', // Optional
isolationSuffix: '_my-team_', // Optional
}),
],
});Webpack
import { processCssWebpackPlugin } from '@semcore/process-css-unplugin';
module.exports = {
// ...
plugins: [
processCssWebpackPlugin({
virtualFilesPrefix: 'myprefix', // Optional
isolationSuffix: '_my-team_', // Optional
}),
],
// ...
};
## 👤 Author
[UI-kit team](https://github.com/semrush/intergalactic/blob/master/MAINTAINERS) and [others ❤️](https://github.com/semrush/intergalactic/graphs/contributors)
## 🤝 Contributing
Contributions, issues and feature requests are welcome!
Feel free to check [issues page](https://github.com/semrush/intergalactic/issues). You can also take a look at the [contributing guide](https://github.com/semrush/intergalactic/blob/master/CONTRIBUTING.md).
## Show your support
Give a ⭐️ if this project helped you!
## 📝 License
This project is [MIT](https://github.com/semrush/intergalactic/blob/master/LICENSE) licensed.