Jump to content

Compilation des fichiers scss js sur prestashop 1.7


Recommended Posts

Bonjour,

 

J'ai passé la matinée à essayer d'installer les outils pour la compilations des fichiers css et js du thème classic, alors je vous propose un petit topo sur ce que j'ai fait.

 

Pour pouvoir compiler il faut télécharger package.json sur https://github.com/PrestaShop/PrestaShop/tree/develop/themes/classic/_dev

Et l'installer dans le thème dans le dossier _dev

 

Puis installer note.js  https://nodejs.org/en/

 

Ouvrez une console avec windows powerShell si vous etes sur windows ou une fenetre terminal sur mac.

 

Installez webpack

 

 

  1. cd maboutique/themes/montheme/_dev/  webpack -w 
    npm install

Pour recompiler les fichiers :

npm run build

C'est la ou j'ai eu des erreurs, certaine installations ne sont pas les bonnes, j'ai trouvé ca sur le forum anglais

 

  1. npm uninstall jquery
    npm install [email protected]
    npm uninstall tether
    npm install [email protected]
    npm uninstall events
    npm install [email protected]
    npm uninstall flexibility
    npm install [email protected]
    npm unsinstall node-sass
    npm install [email protected]
    npm-install open-sans-fontface
    npm-uninstall material-design-icons
    npm install material-design-icons
  2. npm unsinstall node-sass
    npm install [email protected]
    npm-install open-sans-fontface
    npm-uninstall material-design-icons
    npm install material-design-icons

 

Et ca fonctionne avec la 1.7.0.5, j'ai pu recompiler mes fichiers

 

Voila en espérant que ça aide.

 

Voila le lien vers le forum anglais :

https://www.prestashop.com/forums/topic/538034-help-using-webpack/

Edited by Ariane Web et Plus (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...