Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added an AMD module registration.

  • Loading branch information...
commit 905d63fd2fba9ea06ad3f7bd5e27c1b72b3329f0 1 parent 2af0f62
@CasualSuperman CasualSuperman authored
Showing with 7 additions and 0 deletions.
  1. +1 −0  Makefile
  2. +6 −0 build/amd.js
View
1  Makefile
@@ -27,6 +27,7 @@ less:
@@cat ${HEADER} | sed s/@VERSION/${VERSION}/ > ${DIST}
@@echo "(function (window, undefined) {" >> ${DIST}
@@cat build/require.js\
+ build/amd.js\
build/ecma-5.js\
${SRC}/parser.js\
${SRC}/functions.js\
View
6 build/amd.js
@@ -0,0 +1,6 @@
+// amd.js
+//
+// Define Less as an AMD module.
+if (typeof define === "function" && define.amd) {
+ define("less", [], function () { return less; } );
+}
Please sign in to comment.
Something went wrong with that request. Please try again.