ExamGecko
Question list
Search
Search

List of questions

Search

Related questions











Question 48 - AD0-E720 discussion

Report
Export

When using Grunt, which CLI command is used to track changes in the source files and recompiles CSS files?

A.
grunt start
Answers
A.
grunt start
B.
grunt watch
Answers
B.
grunt watch
C.
grunt less
Answers
C.
grunt less
Suggested answer: B

Explanation:

The grunt watch command is used to track changes in the source files and recompiles CSS files automatically. This command is useful for frontend development as it allows the developer to see the changes in real time without manually running other commands. The grunt watch command can be run with or without parameters to specify the theme and locale. For example, to track changes for the Vendor/Orange theme and the en_US locale, the developer can use:

grunt watch --theme=Vendor/Orange --locale=en_US

The other two options are incorrect because they do not track changes in the source files. The grunt start command is used to register themes and clear caches before running other commands. The grunt less command is used to compile LESS files to CSS files for a specific theme and locale.

Reference:Adobe Commerce Developer Documentation,Adobe Inc.

asked 02/10/2024
Shirish Astagikar
39 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first