Skip to content

[Issue] Update lessjs to v3.13.1 #31824

Closed
@m2-assistant

Description

@m2-assistant

This issue is automatically created based on existing pull request: #31618: Update lessjs to v3.13.1


Description (*)

Update old version to recently newer
2.3.1 to 3.13.1
Current magento used lessjs v2.3.1.
Official version is https://cdn.jsdelivr.net/npm/[email protected]
https://www.jsdelivr.com/package/npm/less
For maintain compatible we can stay at v3 for a while!. Current official less released v4.1.0

Official less website http://lesscss.org/

This file allow to browser compile less file to css on-flies. Allow developer can check styles from browser without need run deploy ! Note this feature not work in production mode

Idealy lessjs the version should be same as lessphp compile version

Related Pull Requests

Fixed Issues (if relevant)

No issue available

Manual testing scenarios (*)

  1. Enable developer mode
  2. Enable Client side compilation in Advanced Configuration
    (Stores > Configuration > Advanced > Developer
    Frontend Development Workflow => Workflow type : Client side less compilation)
  3. Save and clear cache config admin
  4. Go to frontend and verify page render properly without break or glitch
  5. Change package.json.sample => package.json
  6. Install package by command npm install
  7. from commandline run
    node_modules/.bin/lessc --version and check properly version less

Questions or comments

CC: @Leland @krzksz @ptylek what do you guys think on this ?

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds are green)

Metadata

Metadata

Assignees

Labels

Priority: P2A defect with this priority could have functionality issues which are not to expectations.Progress: doneSeverity: S3Affects non-critical data or functionality and does not force users to employ a workaround.duplicate

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions