(dist) wrap script in anonymous function
This commit is contained in:
parent
dbc0e408be
commit
92db519390
2
Makefile
2
Makefile
@ -24,12 +24,14 @@ less:
|
||||
@@mkdir -p dist
|
||||
@@touch ${DIST}
|
||||
@@cat ${HEADER} | sed s/@VERSION/${VERSION}/ > ${DIST}
|
||||
@@echo "(function (window, undefined) {" >> ${DIST}
|
||||
@@cat build/ecma-5.js\
|
||||
${SRC}/parser.js\
|
||||
${SRC}/functions.js\
|
||||
${SRC}/tree/*.js\
|
||||
${SRC}/tree.js\
|
||||
${SRC}/browser.js >> ${DIST}
|
||||
@@echo "})(window);" >> ${DIST}
|
||||
@@echo ${DIST} built.
|
||||
|
||||
min: less
|
||||
|
@ -1,4 +1,6 @@
|
||||
(function () {
|
||||
//
|
||||
// browser.js - client-side engine
|
||||
//
|
||||
|
||||
var isFileProtocol = location.protocol === 'file:';
|
||||
|
||||
@ -292,4 +294,3 @@ less.Parser.importer = function (path, paths, callback) {
|
||||
});
|
||||
};
|
||||
|
||||
})();
|
||||
|
Loading…
Reference in New Issue
Block a user