Problem/Motivation
Currently, adding a new stylesheet or script requires manually editing vite.config.js to include it as an input.
It would be great if files under /src could be autodetected.
Proposed resolution
Modify vite configuration to automatically detect files under /src
Issue fork artisan-3570995
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
frouco commentedVite now automatically detects the .css files to be processed and discards the partial files (_name.css). If the file is placed in a folder, the folder structure will be duplicated in the output folder (dist).
Comment #5
alejandro cabarcos commentedTested on a clean D11 installation and working.
Thanks fran
Merging into 2.x
Comment #7
alejandro cabarcos commented