For my admin panel I extract all the assets including the manifest-json.js
to mix.setPublicPath(path.normalize('public/backend/'))
.
All the files get correctly added to the backend folder, and the manifest-json.js
file looks as follows:
{
// all correct here
"/js/vendor.js": "/js/vendor.js",
"/js/app.js": "/js/app.js",
"/css/app.css": "/css/app.css",
"/js/manifest.js": "/js/manifest.js"
}
the problem is that when using
{{ mix('backend/css/app.css') }}
in my blade-files, it looks in public/manifest-json.js
instead of looking for it in backend/manifest-json.js
.
How can I make sure the right manifest-json.js
file is used?
question from:
https://stackoverflow.com/questions/45153738/the-mix-manifest-does-not-exist-when-it-does-exist 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…