cancel
Showing results for 
Search instead for 
Did you mean: 

Grunt does not compile my Custom Modules

   Did you know you can see the translated content as per your choice?

Translation is in progress. Please check again after few minutes.

Grunt does not compile my Custom Modules

Hello everybody,

 

I would like to understand how Grunt compiles sources in Magento 2.

 

I have installed Grunt on my server and set my Magento 2 project (add Gruntfile.js and update dev/tools/grunt/configs/themes.js to add my theme) I have Less in app/design/frontend////web/css/.

 

I tried to run grunt:exec and Grunt compiles all Less in all Magento Modules (in my app/design/...) to pub/static/frontend///. But Less in my custom modules (in my app/design) is not compiled.

 

Tests : When I run grunt watch and I modify Less in app/design/frontend////web/css/, it works. When I run grunt watch and I modify Less in app/design/frontend////web/css/, it does not work.

 

Thank you