vite-plugin-laravel-blade-class-parser
v0.0.1-rc.3
Published
Vite Plugin to pipe Laravel Blade element classnames to file for CI/CD pipelines.
Downloads
7
Maintainers
Readme
Installation
With pnpm:
pnpm i vite-plugin-laravel-blade-class-parser
with npm:
npm i vite-plugin-laravel-blade-class-parser
or with yarn:
yarn add vite-plugin-laravel-blade-class-parser
Setup with Vite
import LaravelBladeClassParser from "vite-plugin-laravel-blade-class-parser";
export default defineConfig({
...
plugins: [
LaravelBladeClassParser({
// File path to write the class names to
outputFilePath: './path-to-file.txt';
// # Optional: string prefix to filter class names by
filterPrefix: 'tw-theme-';
// # Optional: delimiter string to use in the output file
delimiter: ',';
}),
],
});
Default Configurations
{
/**
* Type: string
* Required: true
*/
outputFilePath: path.resolve("blade-classes.txt"),
/**
* Type: string
* Required: false
*/
filterPrefix: "",
/**
* Type: string
* Required: false
*/
delimiter: ","
}