#Vite import problem

3 messages · Page 1 of 1 (latest)

west gyro
#

So we have a layout called cms which uses @vite to load in css & js files. that all works fine and dandy. But we have some specific css files for some of the pages using that layout. it's build up like so:

  1. In the layout we have @yield('styles')
  2. In the page we have:
@section('styles')
    @vite(['resources/css/page-detail.css', 'resources/css/trix-editor.css'])
@endsection

We have this because these css files are specific to that page and are not required by others. Sadly when we run this we get a:

Unable to locate file in Vite manifest: resources/css/page-detail.css. when visiting the page.

Is there any way to fix this?

west gyro
#

Vite import problem

#

update: i figured out that it's a vite problem and that the css wasn't in the configure file. Is there a way to build all css files? i can't find anything