Skip to content

Define less.js as CommonJS/AMD #457

@idris

Description

@idris

Less.js should be defined as a CommonJS/AMD module. This can be done unobtrusively by adding the following code:

if (typeof define === "function" && define.amd) {
    define("less", [], function () { return less; } );
}

This standard is being embraced by many libraries, such as jQuery 1.7 (see: http://bugs.jquery.com/ticket/7102)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions