Skip to content

Laravel mix is not properly updating the mix-manifest.json #283

Closed
@mlevkovsky

Description

@mlevkovsky

This is my mix file

`const { mix } = require('laravel-mix');

mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css');
mix.copy('resources/assets/css/styles.css', 'public/css/styles.css')`

However whenever I try to reference my styles.css folder with

<link rel="stylesheet" href="{{ mix('/css/styles.css') }}"/>

I get an error 500 saying: Unable to locate Mix file: /css/styles.css

When I check the mix-manifest.json my styles.css is not added in there. If I add it myself then everything loads fine, but since it's recreated each time I run mix, that's obviously not an option.

Thanks in advance

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