Questions tagged [grunt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
1answer
3k 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 ...
7
votes
1answer
5k 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 ...
11
votes
3answers
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?
3
votes
2answers
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?
5
votes
1answer
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 ...
5
votes
6answers
8k views

How to Configure Magento2 with Gulp instead Grunt

How to configure Magento2 with Gulp instead Grunt. Anyone have idea ?
3
votes
4answers
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 {...
1
vote
1answer
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 ...
5
votes
2answers
213 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/...
1
vote
1answer
5k 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 ...
4
votes
1answer
664 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 ...
3
votes
1answer
628 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, ...
3
votes
4answers
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 ...
2
votes
3answers
4k 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. ...
0
votes
1answer
318 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 ...
0
votes
1answer
613 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 ...