mirror of
https://github.com/less/less.js.git
synced 2026-04-09 03:00:20 -04:00
Merge pull request #479 from tobias104/issue-457
CommonJS/AMD module support
This commit is contained in:
1
Makefile
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\
|
||||
|
||||
6
build/amd.js
Normal file
6
build/amd.js
Normal file
@@ -0,0 +1,6 @@
|
||||
// amd.js
|
||||
//
|
||||
// Define Less as an AMD module.
|
||||
if (typeof define === "function" && define.amd) {
|
||||
define("less", [], function () { return less; } );
|
||||
}
|
||||
Reference in New Issue
Block a user