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