Plan step 37 review. @tailwindcss/vite inlines the imports of an entry that uses Tailwind without Vite's skipDuplicates, so with all.css beside @import 'tailwindcss' every shared component stylesheet repeated later in the cascade (231 repeated rules; button.css's hover and disabled rules thirteen times), and every browser test ran against an order no application gets. workbench/resources/css/package.css now holds all.css and the scheme in an entry Tailwind never touches, and app.css keeps Tailwind for the showcase's classes. The built package CSS repeats no rule, and the Workbench's CSS shrinks from 559 to 406 KB. Both entries open with the same layer statement, properties first, because Tailwind hoists that layer to the top of its output; the order is the one the single entry had, whichever the page links first. The showcase's Vite config, vite.config.js and the error page test's probe manifest name the new entry. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qwx5USif3wFFmxtHg5U1g9
17 lines
665 B
JavaScript
17 lines
665 B
JavaScript
import { defineConfig } from 'vite'
|
|
import laravel from 'laravel-vite-plugin'
|
|
import tailwindcss from '@tailwindcss/vite'
|
|
|
|
// Builds the Workbench, the Laravel app the showcase and the browser tests run in.
|
|
// Applications never use this file; they import the package's CSS and JS into their own build.
|
|
export default defineConfig({
|
|
plugins: [
|
|
laravel({
|
|
input: ['workbench/resources/css/package.css', 'workbench/resources/css/app.css', 'workbench/resources/js/app.js'],
|
|
publicDirectory: 'workbench/public',
|
|
refresh: ['resources/views/**', 'workbench/resources/views/**'],
|
|
}),
|
|
tailwindcss(),
|
|
],
|
|
})
|