Skip to content

Commit

Permalink
Merge pull request less#479 from tobias104/issue-457
Browse files Browse the repository at this point in the history
CommonJS/AMD module support
  • Loading branch information
Alexis Sellier committed Jan 19, 2012
2 parents 62ce2e0 + 905d63f commit 90013bc
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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\
Expand Down
6 changes: 6 additions & 0 deletions build/amd.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// amd.js
//
// Define Less as an AMD module.
if (typeof define === "function" && define.amd) {
define("less", [], function () { return less; } );
}

0 comments on commit 90013bc

Please sign in to comment.