Skip to content

Compiling Assets #757

@techkodeninja

Description

@techkodeninja

I just have a quick question. I recently went back to using Jigsaw again, and it looks like it now uses Vite for compiling assets. I was wondering if there’s a way to change where the compiled assets are output.

For example, I usually keep my development assets in resources/js/app.js and resources/scss/screen.scss with a configuration like this:

import jigsaw from '@tighten/jigsaw-vite-plugin';
import { defineConfig } from 'vite';

export default defineConfig({
    plugins: [
        jigsaw({
            input: [
                'resources/js/app.js',
                'resources/scss/screen.scss'
            ],
            refresh: true,
        }),
    ],
});

When I run npm run dev or npm run watch, the compiled files are generated in source/assets/build. Is it possible to change the output directory to public/assets/build instead? I have a structure I prefer to maintain.

I have this in my config.php file

<?php

return [
    'build' => [
        'source' => 'public'
    ],
];

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