Skip to content

Vite Rebuild doesn't work for source/_assets/css/main.{js,css} #742

@tomasnorre

Description

@tomasnorre

I have a problem with my Jigsaw blog after switching to version 1.8 and Vite. Changes in source/_assets/css/main.js nor source/_assets/css/main.css doesn't trigger a Vite rebuild nor a Hot Reload of the page.

I have tested with both a site setup with vendor/bin/jigsaw init and vendor/bin/jigsaw init blog neither of them works, therefor I have added the issue here directly.

Steps to reproduce:

mkdir -p /tmp/jigsaw-vite
cd /tmp/jigsaw-vite
composer require tightenco/jigsaw
vendor/bin/jigsaw init
# start the two servers
vendor/bin/jigsaw serve
npm run dev

Now make a change in source/_assets/css/main.js or source/_assets/css/main.css and see that the rebuild doesn't happen, nor the reload. If I do a change in source/index.blade.php or source/_layouts/main.blade.php then it rebuilds and reloads as expected, but not the two css or js files.

If the problem comes from the @tighten/jigsaw-vite-plugin I cannot say yet.

Let me know if I can help you in any what to get this solved, I'm not really a frontend kind of person, but will support the best I can.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions