Skip to main content
added 6 characters in body
Source Link
St3phan
  • 2.9k
  • 1
  • 25
  • 49

Magento2 Grunt Documentation

Install NodeJs in your pc

Use comand line:

  • Install Grunt CLI tool globally

* Install Grunt CLI tool globally
    * Run: npm install -g grunt-cli
* Install the node.js project dependency
    * Run: 

* Install the node.js project dependency
npm install
* Remove Magento Cache
    * Run: 

* Remove Magento Cache
php bin/magento cache:clean
* Clean compiled files by command
    * Run: 

* Clean compiled files by command
grunt clean
* Run CMD command prompt with administrator privilege.
* Run: 

* Run CMD command prompt with administrator privilege.
grunt exec:yourthemename
* Run: grunt less:yourthemename
* Run: grunt watch
 

https://drive.google.com/a/green-art.ro/file/d/0B_3mauXj4AQINXVoTXlBT2JSUjA/view?usp=sharing

 
https://drive.google.com/a/green-art.ro/file/d/0B_3mauXj4AQINXVoTXlBT2JSUjA/view?usp=sharing

If that does not work grunt watch during development or run software from Php Storm roll back the following commands: 

  • Remove Magento Cache

* Remove Magento Cache
    * Run: php bin/magento cache:clean
* Clean compiled files by command
    * Run: 

* Clean compiled files by command
grunt clean
* Run CMD command prompt with administrator privilege.
* Run: 

* Run CMD command prompt with administrator privilege.
grunt exec:yourthemename
* Run: grunt less:yourthemename
* Run: grunt watch
 

Magento2 Grunt Documentation

Install NodeJs in your pc

Use comand line:


* Install Grunt CLI tool globally
    * Run: npm install -g grunt-cli
* Install the node.js project dependency
    * Run: npm install
* Remove Magento Cache
    * Run: php bin/magento cache:clean
* Clean compiled files by command
    * Run: grunt clean
* Run CMD command prompt with administrator privilege.
* Run: grunt exec:yourthemename
* Run: grunt less:yourthemename
* Run: grunt watch
 

https://drive.google.com/a/green-art.ro/file/d/0B_3mauXj4AQINXVoTXlBT2JSUjA/view?usp=sharing


If that does not work grunt watch during development or run software from Php Storm roll back the following commands:


* Remove Magento Cache
    * Run: php bin/magento cache:clean
* Clean compiled files by command
    * Run: grunt clean
* Run CMD command prompt with administrator privilege.
* Run: grunt exec:yourthemename
* Run: grunt less:yourthemename
* Run: grunt watch
 

Magento2 Grunt Documentation

Install NodeJs in your pc

Use comand line:

  • Install Grunt CLI tool globally
npm install -g grunt-cli

* Install the node.js project dependency
npm install

* Remove Magento Cache
php bin/magento cache:clean

* Clean compiled files by command
grunt clean

* Run CMD command prompt with administrator privilege.
grunt exec:yourthemename
grunt less:yourthemename
grunt watch
 
https://drive.google.com/a/green-art.ro/file/d/0B_3mauXj4AQINXVoTXlBT2JSUjA/view?usp=sharing

If that does not work grunt watch during development or run software from Php Storm roll back the following commands: 

  • Remove Magento Cache
php bin/magento cache:clean

* Clean compiled files by command
grunt clean

* Run CMD command prompt with administrator privilege.
grunt exec:yourthemename
grunt less:yourthemename
grunt watch
Source Link
St3phan
  • 2.9k
  • 1
  • 25
  • 49

Magento2 Grunt Documentation

Install NodeJs in your pc

Use comand line:

* Install Grunt CLI tool globally
    * Run: npm install -g grunt-cli
* Install the node.js project dependency
    * Run: npm install
* Remove Magento Cache
    * Run: php bin/magento cache:clean
* Clean compiled files by command
    * Run: grunt clean
* Run CMD command prompt with administrator privilege.
* Run: grunt exec:yourthemename
* Run: grunt less:yourthemename
* Run: grunt watch

https://drive.google.com/a/green-art.ro/file/d/0B_3mauXj4AQINXVoTXlBT2JSUjA/view?usp=sharing


If that does not work grunt watch during development or run software from Php Storm roll back the following commands:

* Remove Magento Cache
    * Run: php bin/magento cache:clean
* Clean compiled files by command
    * Run: grunt clean
* Run CMD command prompt with administrator privilege.
* Run: grunt exec:yourthemename
* Run: grunt less:yourthemename
* Run: grunt watch