Jump to content

How to recompile assets for PrestaShop backoffice?

Recommended Posts


I'm trying to recompile the assets for my prestasho backoffice because I needed to take some adjustments in the javascript code to not hide a form once it has been saved. What I found is: https://devdocs.prestashop.com/1.7/development/compile-assets/. But I'm not able to do the npm install and npm run build commands. There is no package.json as in normal node projects. Additionally the above page states that as of prestashop 1.7.6 there should be a build.sh script in tools/assets. I was not able to find that script. I even downloaded a new version and checked the tools folder, there is no assets folder inside.

Can you tell me how it is possible to rebuild the js assets, either without npm and nodejs or how I can set it up correctly to be able to run the npm run build command?

Kind RegardsAndi

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More