Vite Plugin Laravel Purgecss

screenshot of Vite Plugin Laravel Purgecss
laravel
vite

A Vite plugin that integrates PurgeCSS with Laravel template assets. Apart from Blade, it also supports frontend frameworks such as Svelte, Vue, React and Angular. It works well with Inertia.

Overview

The vite-plugin-laravel-purgecss is a Vite plugin that integrates PurgeCSS with Laravel template assets. It is designed to purge assets only in production mode and is currently updated to support laravel/laravel@10.2.9.

Features

  • Integrates PurgeCSS with Laravel template assets
  • Purges assets only in production mode
  • Supports list of ready paths to be processed by PurgeCSS
  • Allows customization of safelist options
  • Provides options for custom extractors

Summary

The vite-plugin-laravel-purgecss is a Vite plugin that integrates PurgeCSS with Laravel template assets. It offers features such as purging assets only in production mode, supporting custom paths for processing by PurgeCSS, and customizable safelist options. The installation process is simple and can be done using either yarn or npm.

laravel
Laravel

Laravel is a powerful and elegant PHP framework that provides developers with a comprehensive set of tools and features to build robust web applications. It follows the Model-View-Controller (MVC) architectural pattern, offering a clean and organized structure for writing efficient and maintainable code.

vite
Vite

Vite is a build tool that aims to provide a faster and leaner development experience for modern web projects

rollup
Rollup

RollupJS is a popular and efficient JavaScript module bundler that takes the code from multiple modules and packages them into a single optimized file, minimizing the overall size of the application and improving its performance.

typescript
Typescript

TypeScript is a superset of JavaScript, providing optional static typing, classes, interfaces, and other features that help developers write more maintainable and scalable code. TypeScript's static typing system can catch errors at compile-time, making it easier to build and maintain large applications.