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 https://github.com/poddubny/magento2-gulp   =>     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

http://www.ibnab.com/en/blog/magento-2/magento-2-video-introduction-for-using-gulp-in-frontend

Down load to Magento folder

https://github.com/subodha/magento-2-gulp

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
Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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