Mix-manifest always prefixed with public
See original GitHub issueI am running this in a custom project outside of Laravel. I have tried multiple things but the manifest always creates paths with public prefixed:
{
"public/js/app.js": "public/js/app.ee0ab4b45edac1e84a9d.js",
"public/css/app.css": "public/css/app.e937875be4a33e00472a.css"
}
My mix file:
mix.js('resources/assets/js/app.js', 'public/js')
.sass('resources/assets/sass/app.scss', 'public/css')
.version();
In Laravel the mixfile looks exactly the same yet produces a mix-manifest without the public prefix. I have also looked at the mix()
helper in Laravel what am I missing here?
Issue Analytics
- State:
- Created 7 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
Mix-manifest always prefixed with public · Issue #246
I am running this in a custom project outside of Laravel. I have tried multiple things but the manifest always creates paths with...
Read more >Versioning with Mix, manifest does not exist. {but.... it does!)
I came across this thread as I faced the same issue. The problem a lot of the times is that the mix() -helper...
Read more >The Mix manifest does not exist when it does exist
The mix() -helper function allows for a second argument, the directory of the manifest file. Just specify it there and it will use...
Read more >Frequently Asked Questions | Laravel Mix Documentation
No. It has awareness of Laravel, but it can be used for any project. Just be sure to explicitly set the path to...
Read more >Mix Manifest plugin
Provides twig function to read the manifest file generated by Laravel Mix Versioning.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
For a stand-alone project, you need to tell Mix what your public base directory is. Do:
The mix-manifest.json file should always be in your public directory.