layout | group | subgroup | title | menu_title | menu_node | menu_order | version | github_link | redirect_from |
---|---|---|---|---|---|---|---|---|---|
default |
config-guide |
04_CLI |
Create symlinks to LESS files |
Create symlinks to LESS files |
350 |
2.0 |
config-guide/cli/config-cli-subcommands-less-sass.md |
/guides/v1.0/config-guide/cli/config-cli-subcommands-less-sass.html |
Command options:
magento dev:source-theme:deploy [--type="..."] [--locale="..."] [--area="..."] [--theme="..."] [file1] ... [fileN]
The following table discusses the meanings of this command's parameters and values.
Parameter | Value | Required? |
---|---|---|
--type |
Type of source files: [less] (default: "less") Currently, LESS is the only file type supported. |
No |
--locale |
Locale code. To display the list of locale codes, enter |
No |
--area |
Area ( |
No |
--theme |
Theme name in |
No |
<file> |
Space-separated list of CSS files to convert to LESS without the |
No |
For example, to create LESS files for the frontend theme named VendorName/themeName
in the en_US
locale using a CSS file named <your Magento install dir>/pub/static/frontend/VendorName/themeName/en_US/css/styles-l.css
, enter the following command:
magento dev:source-theme:deploy --type="less" --locale="en_US" --area="frontend" --theme="VendorName/themeName" css/styles-l
The following messages display to confirm success:
Processed Area: frontend, Locale: en_US, Theme: VendorName/themeName, File type: less.
-> css/styles-l.less
Successfully processed.
To create LESS files for the adminhtml, enter the following command:
magento dev:source-theme:deploy --locale="en_US" --area="adminhtml" --theme="Magento/backend" css/styles css/styles-old