The Mix manifest does not exist when it does exist

后端 未结 10 1860
醉酒成梦
醉酒成梦 2020-12-23 20:56

For my admin panel I extract all the assets including the manifest-json.js to mix.setPublicPath(path.normalize(\'public/backend/\')).

All t

10条回答
  •  粉色の甜心
    2020-12-23 21:18

    The problem I faced was that the mix()-helper function by default looks for the manifest-json file in /public/manifest-json.js so if you store that file on any other directory level then it will throw that error.

    Let's say the manifest-json file is stored in public/app/manifest-json.js, then for a file located in public/app/css/app.css you would use:

    
    

    The mix()-helper function allows for a second argument, the directory of the manifest file. Just specify it there and it will use the correct manifest file.

提交回复
热议问题