question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

edit path for assets in manifest [subfolder]

See original GitHub issue

does 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:closed
  • Created 6 years ago
  • Reactions:2
  • Comments:8

github_iconTop GitHub Comments

7reactions
geoffreyvanwykcommented, May 25, 2017

@JeffreyWay , definitely needed.

3reactions
camiantcommented, Apr 14, 2017

editing \node_modules\laravel-mix\src\Manifest.js in refresh 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 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found