As of May 31, 2023, we have updated our Code of Conduct.

Questions tagged [grunt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6 votes
1 answer
4k views

Magento 2 - How to configure Grunt in PhpStorm

I'm trying to configure Grunt in PhpStorm. I have set for Grunt: Node interpreter: /usr/bin/node (exists) Package grunt-cli: [path to Magento 2 dir] I get the error bellow when I 'Reload tasks' in ...
Daniel Ifrim's user avatar
  • 3,354
7 votes
2 answers
6k views

LiveReload configuration via Grunt

Edit : about the possible duplicate ! I would like to mention that this answer does not answer my question, if someone sees that it is the same thing, I invite him to answer me instead of saying that ...
PЯINCƎ's user avatar
  • 11.5k
11 votes
3 answers
2k views

Magento 2 add new theme without changing core files. Grunt

How to extend default Magento 2 Grunt configuration without touching/editing core files like Gruntfile.js and dev/tools/grunt/configs/themes.js?
Jev Mokrousov's user avatar
5 votes
1 answer
1k views

How to add new theme name to grunt CLI command to run grunt tool in Magento 2?

When we clone new theme from existing parent theme in Magento 2. How we can execute less:newThemName command using grunt CLI ? As well as how grunt watch will look any changes into newly created ...
Praful Rajput's user avatar
4 votes
2 answers
3k views

Difference between static content deploy & grunt exec

What's the difference between following commands (Magento 2) bin/magento setup:static-content:deploy and grunt exec When should you use which command?
Devtype's user avatar
  • 2,978
5 votes
6 answers
9k views

How to Configure Magento2 with Gulp instead Grunt

How to configure Magento2 with Gulp instead Grunt. Anyone have idea ?
Hitesh Koshti's user avatar
5 votes
1 answer
898 views

How to compile gallery and calendar css with grunt?

I have put gallery.less and calendar.css in web\mage\gallery and web\mage respectively in my custom theme, But they are not compile with grunt. How can i compile these files with grunt like other ...
Dipesh Rangani's user avatar
5 votes
2 answers
250 views

Magento 2.2.5 Css is not generating

I have one project in Magento 2.2.5 and in that the CSS is stopped generating I have run all grunt command and in that it show below error when i run grunt exec pub/static/frontend/Magento/luma/en_US/...
Kajal Solanki's user avatar
3 votes
4 answers
3k views

Magento 2 + Livereload

I am currently in the middle of setting up a front end workflow for Magento 2, however I am currently unable to get livereload to work. Everything I have read so far on various tutorials and the ...
wickywills's user avatar
3 votes
1 answer
732 views

Magento 2 - Registering a new Grunt task without editing Gruntfile.js

Following on from this question: Magento 2 add new theme without changing core files. Grunt The goal is to register a new Grunt task called "development". To do this, grunt.registerTask is needed, ...
Tisch's user avatar
  • 178
3 votes
4 answers
2k views

Grunt, .less, and Live Reload - Can't get them working

Good afternoon, I am having a devil of a time getting my front-end flow working. I have grunt CLI working, along with theme.js setup properly (see images below). Still, when I make changes within my {...
AdamJSim's user avatar
  • 103
2 votes
3 answers
5k views

Static content deploy - Compilation from source

Doing a setup:static-content:deploy never finishes deploying files on a custom theme. Instead gives Compilation from source: frontend/Vendor/theme/en_US/css/email-fonts.less and then stops compiling. ...
user9139's user avatar
  • 101
1 vote
1 answer
6k views

Run Grunt deploy task -> Fatal error: Class 'Locale' not found

I NodeJs installed, I installed the Magento2 Grunt that works, but if I run the command "grunt deploy" it delete all from the folder pub/static/ but do not deploy and returns me the error below. Can ...
St3phan's user avatar
  • 2,847
1 vote
1 answer
2k views

What are the Magento 2 Grunt commands? From deployment?

I am developing on Magento 2 EE and I have just setup up my local machine. I notice that after using Composer I can now see Magento 2 EE. So I ran the command grunt deploy and this basically appeared ...
TheBlackBenzKid's user avatar
0 votes
1 answer
751 views

How do I update Magento 2 phtml files in Grunt?

I have updated the file and added some text to: app/code/Magento/Theme/view/frontend/templates/html/header.phtml I have checked the website and nothing is reflecting on the site. I have cleared my ...
TheBlackBenzKid's user avatar
0 votes
1 answer
723 views

Magento 2 - LiveReload is connected, but changes are only visible after manual reload

I try to use grunt watch in combination with livereload. But there is almost no documentation on the topic. I installed livereload like this: npm install -g livereload Then I added the following ...
Black's user avatar
  • 2,993