Skip to content
This repository was archived by the owner on Nov 19, 2024. It is now read-only.

Added new option to static-content:deploy command #8765

Merged
merged 5 commits into from
Mar 24, 2021
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ To deploy static view files:
Command options:

```bash
bin/magento setup:static-content:deploy [<languages>] [-t|--theme[="<theme>"]] [--exclude-theme[="<theme>"]] [-l|--language[="<language>"]] [--exclude-language[="<language>"]] [-a|--area[="<area>"]] [--exclude-area[="<area>"]] [-j|--jobs[="<number>"]] [--no-javascript] [--no-css] [--no-less] [--no-images] [--no-fonts] [--no-html] [--no-misc] [--no-html-minify] [-f|--force]
bin/magento setup:static-content:deploy [<languages>] [-t|--theme[="<theme>"]] [--exclude-theme[="<theme>"]] [-l|--language[="<language>"]] [--exclude-language[="<language>"]] [-a|--area[="<area>"]] [--exclude-area[="<area>"]] [-j|--jobs[="<number>"]] [--no-javascript] [--no-css] [--no-less] [--no-images] [--no-fonts] [--no-html] [--no-misc] [--no-html-minify] [--no-parent] [-f|--force]
```

The following table explains this command's parameters and values.
Expand Down Expand Up @@ -252,6 +252,15 @@ The following table explains this command's parameters and values.
<p>No</p>
</td>
</tr>
<tr>
<td>--no-parent</td>
<td>
<p>This option provides the ability to deploy only the specific themes for multiple locales. It improves the build phase of deployment for the those who use a single theme with different locales.</p>
Copy link
Contributor

@hostep hostep Mar 16, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would say something like:

Do not generate files for the parent themes of the current theme. It is strongly recommended to use this flag if you don't explicitly use the parent theme of the current theme you are trying to deploy in your shop. Using this flag will significantly increase the speed of this process.

This flag became available in Magento 2.4.2

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excellent. Thanks for that.

</td>
<td>
<p>No</p>
</td>
</tr>
<tr>
<td>--force (-f)</td>
<td>
Expand Down