0.0.1-rc.3 • Published 1 year ago

vite-plugin-laravel-blade-class-parser v0.0.1-rc.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

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: ","
}