Skip to main content

Questions tagged [grunt]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
223 views

Magento 2 Theme - grunt watch with overridden {module}.scss

we are working on a magento 2 theme and followed the official guidelines regarding structure, naming and grunt. there is a correct grunt config and everything works fine with local styles (eg. local-l....
dkiss's user avatar
  • 1
2 votes
1 answer
299 views

Magento 2 - Grunt Watch in Vagrant Environment

I'm running into this issue where when I ssh into my Vagrant VM and run grunt watch while editing css, it totally boggs down my system. I hear the fan speed up and if left running, my VM grinds to a ...
Paul's user avatar
  • 1,501
1 vote
1 answer
177 views

GruntJS with multiple themes

I have a question about how to work with multiple stores and only one gruntfile.js file. Has anyone done something similar?
William Costa's user avatar
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
  • 111
0 votes
0 answers
394 views

How do you manage dev/tools/grunt/configs/themes.js file with version control in magento2?

The themes.js file contains important configuration and without it you cannot run grunt tasks for your theme: #dev/tools/grunt/configs/themes.js mytheme: { area: 'frontend', ...
Claudiu Creanga's user avatar
1 vote
2 answers
364 views

Grunt configuration Magento 2

Using the php bin/magento and deploying static content does work without throwing errors. This means that it's just having a problem getting Grunt going. Processed Area: frontend, Locale: en_US, ...
camdixon's user avatar
  • 560
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
5 votes
2 answers
5k views

Magento 2: How to use Grunt properly for CSS changes

I'm trying to figure out the clusterf-ck which is the Magento 2 front-end theming workflow. And I've read and understood all documentation, read all the blogs about it and are up to date on the latest ...
Asitis's user avatar
  • 1,257
2 votes
2 answers
9k views

Fatal error: Unable to find Gruntfile

I have been following a few tutorials to try and get started creating a theme and workflow for Magento 2, and am trying to setup so that I can compile all my LESS files locally, as outlined here. ...
wickywills's user avatar
0 votes
1 answer
675 views

Configure Grunt to watch the overrided vendor module css - Magento2

I have included this module into my project via composer require: https://github.com/JakeSharp/ProductSliderM2 This module has three css files that are being added to each page by the vendor/...
Florin-Adrian Serbu's user avatar
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
0 votes
1 answer
292 views

What are magento2 blacklists?

There is a grunt task black-list-generator that does this: Running tasks: black-list-generator Running "black-list-generator" task Collect data from app/code/**/*.js: Start! Collect data from app/...
Claudiu Creanga's user avatar
5 votes
2 answers
7k views

Magento2: After delete pub/static folder and making deploy, no css files found

I use Magento 2 custom theme and when I made changes to .less file, I wanted to compile files, so I deleted pub/static folder and made deploy: php bin/magento setup:static-content:deploy. After that, ...
Anitr's user avatar
  • 448
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,927
3 votes
1 answer
2k views

See less source files in chrome dev tools

How do you see the less file that is generating the style in chrome dev tools? working in developer mode, in less.js: var lessOptions = { options: { sourceMap: true, and in config.less....
Claudiu Creanga's user avatar
2 votes
1 answer
854 views

Debugging LESS files with Firebug / Chrome Dev tools Magento 2

I am trying to figure out how to display the LESS file and line number pre compilation in developer tools so that I can see where I need to be editing. I have previously got this up and running with ...
user3250's user avatar
0 votes
2 answers
688 views

Magento 2 Server Side Compilation and Grunt Result in 404 Errors in Developer Mode

I am currently working on a theme that I have used and have been changing the templates and styles following the detailed guides over at the Magento2 site. However, I am really struggling to make ...
Adam Stacey's user avatar
0 votes
1 answer
1k views

& when (@media-common = true) - Changes not picked up unless I do static-content-deploy

In the Magento 2 lib documentation it contains the following: @media-common: true|false - sets whether to output common styles. For common styles every time you want to add some styles you should use ...
fracture's user avatar
  • 117
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,434
6 votes
4 answers
8k views

Error after grunt clean

Magento 2 After running: grunt clean and then grunt exec:myTheme I get the following error: >> [InvalidArgumentException] There are no commands defined in the "dev:source-theme" namespace. ...
Mark's user avatar
  • 755
0 votes
1 answer
71 views

Blank pages after grunt clean

I've set up an new theme in Magento 2 and everything was looking fine. I installed Grunt and changed all necessary files (I think) I then did the following: Grunt clean, grunt exec:myTheme, grunt less:...
Mark's user avatar
  • 755
3 votes
2 answers
2k views

Magento 2 grunt watch is not pre-processing LESS for main locale

My core_config_data table has general/locale/code set to en_IE. When I run grunt exec:<theme-name> and then grunt less:<theme-name>, CSS is generated in two separate locale folders, en_GB ...
Aaron Pollock's user avatar
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
0 votes
1 answer
775 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
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
2 votes
2 answers
1k views

DB error when running grunt exec Magento2

I am running grunt exec:luma and am getting the following errors: Processed Area: frontend, Locale: en_GB, Theme: Magento/luma, File type: less. >> [Zend_Db_Adapter_Exception] >> ...
Bobadevv's user avatar
  • 1,120
5 votes
3 answers
2k views

Getting an issue working with Grunt in Magento 2

I'm getting this issue after run grunt exec:<theme>, this shows up: Processed Area: frontend, Locale: en_US, Theme: Ids/prueba, File type: less. [Magento\Framework\Exception\...
Ezequiel Alba's user avatar
0 votes
5 answers
3k views

compile less files with grunt don t work!errors with EXEC command

After creating my theme I'm trying to compile less files. but I'm having errors when : grunt exec:exercise1. I'm using a windows machine.
Fedi's user avatar
  • 11
0 votes
2 answers
369 views

Grunt exec clear pub folder

When i use grunt exec:theme it clears all files in pub/static but does not copy new images, scripts and fonts. I dont have any errors in CLI. I clear all cache and i use grunt refresh.
Maciej's user avatar
  • 153
1 vote
3 answers
5k views

grunt exec command not working in magento2 - Unable to find local grunt

Today I am trying to execute grunt exec:all and grunt exec commands. Unfortunertly it shown me a error. Earlier it was working fine. Later I had try to install new Magento 2 setup. Still the error is ...
Praful Rajput's user avatar
7 votes
3 answers
3k views

Magento 2. Less to CSS. Very slow building process. How to improve?

Currently magento2/grunt is very slow in transforming less to css (with a few locales it can take up to a minute to rebuild everything. Any tips how to improve development speed?
PD81's user avatar
  • 563
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
1 vote
0 answers
559 views

How to use grunt-uncss with Magento?

When I'm running "grunt uncss" I have the following error : Fatal error: PhantomJS: Cannot open about:blank Here is my Gruntfile.js : uncss: { dist: { files: { ...
Lanks's user avatar
  • 514

1 2
3