edit path for assets in manifest [subfolder]
See original GitHub issuedoes exist a method to “fake” the output path in mix-manifest.json in production environment only?
i run my laravel in a subfolder and i would need an option to add some kind of prefix to my path.
… is there a way to add automatically “/subdir_name” ?
mix-manifest.json :
{
"/js/backend.js": "/subdir_name/js/backend.a16e8ecf54a937233140.js",
"/js/frontend.js": "/subdir_name/js/frontend.799232976985f885392c.js",
"/css/frontend.css": "/subdir_name/css/frontend.9bc78ae80cab9ecc1d240d27ce816801.css",
"/css/backend.css": "/subdir_name/css/backend.759d9d3b9e343547408e62525fcaca48.css"
}
thanks
Issue Analytics
- State:
- Created 6 years ago
- Reactions:2
- Comments:8
Top Results From Across the Web
edit path for assets in manifest [subfolder] · Issue #698 - GitHub
i run my laravel in a subfolder and i would need an option to add some kind of prefix to my path. ......
Read more >Rails 6 how to link subfolders in assets/config/manifest.js
I just upgraded to Rails 6 and followed guides to make this manifest file: //= link_tree ..
Read more >The Asset Pipeline - Ruby on Rails Guides
1 Search Paths. When a file is referenced from a manifest or a helper, Sprockets searches the three default asset locations for it....
Read more >Laravel install in a subfolder. The compiled javascript and css ...
I can fix my problem by modify the mix-manifest.json file. In the mix-manifest.json, I update the path with the correct folder and all...
Read more >Organizing assets into folders for Amazon QuickSight
The folder viewer can only use the assets (folders, dashboards, datasets) in the folder. A viewer can't edit or share those assets.
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
@JeffreyWay , definitely needed.
editing
\node_modules\laravel-mix\src\Manifest.js
inrefresh
method you can add:manifest[key] = “/sub_dir” + val;
obviously this is a super dirty hack … an option in webpack.mix.js would be very useful 👍