Set path for mix-manifest.json
See original GitHub issueEnvironment: Laravel Mix Version: 1.4.2 Node Version: 6.10.0 NPM Version: 3.10.10 OS: OS X
Description Hi, In older version 0.x there was no problem with this since the manifest file was generated in the main folder of output path (inside public folder), but in the latest version, the manifest file is always generated in public folder. For example:
Behaviour on 0.x
mix.js('resources/assets/js/app.js','public/build/js')
--> manifest file is generated in /public/build/mix-manifest.js
Behaviour on 1.4.2
mix.js('resources/assets/js/app.js','public/build/js')
--> manifest file is generated in /public/mix-manifest.js
My question is: Is there a way to set the path for manifest file? The idea is that I want to have 2 different manifest files, one for dev env and another for prod env.
Thank you.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:9
Top GitHub Comments
@geodeveloper you can use the mix.setPublicPath() to set the path.
@zarkin404 I got it working, was my fault, I had to update also the
mix.js('resources/assets/js/app.js','public/build/js')
, that’s why I have duplicatepublic
, just removed thepublic
and now works as expected.Thanks for your help, closing this issue.