Skip to content

Modularize plugin, drop deps, align with laravel-vite-plugin - #5

Merged
gcavanunez merged 1 commit into
mainfrom
gc/standalone-v2
Aug 7, 2026
Merged

Modularize plugin, drop deps, align with laravel-vite-plugin#5
gcavanunez merged 1 commit into
mainfrom
gc/standalone-v2

Conversation

@gcavanunez

@gcavanunez gcavanunez commented May 1, 2026

Copy link
Copy Markdown
Contributor

Goal

Stop wrapping laravel-vite-plugin and port the vite pieces that Jigsaw actually needs into this plugin directly. Keep the public jigsaw(config) API stable.

How to test

npm install
npm run build
npm test

End-to-end smoke test

  1. Clone this branch and build the plugin:
git clone -b gc/standalone-v2 git@github.com:tighten/jigsaw-vite-plugin.git
cd jigsaw-vite-plugin && npm install && npm run build
  1. Create a Jigsaw project beside it:
composer create-project tightenco/jigsaw ../test-site
cd ../test-site
  1. Point the plugin at this branch and bump Vite to 8:
npm install --save-dev "file:../jigsaw-vite-plugin" "vite@^8.0.0"
  1. Verify:
    • npm run build: source/assets/build/manifest.json static site appears under build_production
    • npm run dev: banner prints JIGSAW plugin v2.0.0, the hot file is written before the initial build.
    • Refresh: editing source/**/*.md or source/**/*.php triggers a rebuild followed by a full-page reload.

@gcavanunez
gcavanunez requested a review from nicodevs May 1, 2026 20:16

@nicodevs nicodevs left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested this with many Jigsaw projects, works as expected. Great job! 🙌

@gcavanunez
gcavanunez merged commit 8c919ba into main Aug 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants