Magento 2 : Gulp in frontend

  • apt-get install nodejs and tape ln -s /usr/bin/nodejs /usr/bin/node
  • go to root prject and : apt-get install npm
  • npm install –global gulp-cli and tape npm install –save-dev gulp
  • donwload gulp.js from   =>     npm install gulp-less npm install gulp-sourcemaps  npm install gulp-cssmin  npm install gulp-livereload  npm install gulp-if
  • npm install -g graceful-fs
  • bin/magento dev:source-theme:deploy –locale=”en_US” –area=”frontend” –theme=”Ibnab/Salam”
  • php bin/magento setup:static-content:deploy

Down load to Magento folder

Run Administration role:

  • bin/magento dev:source-theme:deploy –locale=”en_US” –area=”frontend” –theme=”Ibnab/Salam”
  1. Run : gulp exec --theme ex: gulp exec –luma
    Or: php bin\magento dev:source-theme:deploy --locale="en_AU" --area="frontend" --theme="VendorName/themeName"
  2. Run : gulp deploy --theme ex: gulp deploy –luma
    Or: php bin\magento setup:static-content:deploy en_AU

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s