From 9b1330a57bc762d1d73a40c1ba97ffdc9fceb211 Mon Sep 17 00:00:00 2001 From: Luke Page Date: Sat, 1 Nov 2014 10:21:58 +0000 Subject: [PATCH] Use Browserify's standalone option to wrap `dist/less` in UMD --- Gruntfile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Gruntfile.js b/Gruntfile.js index 0958a51b..a40aa6a8 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -48,7 +48,10 @@ module.exports = function (grunt) { browser: { src: ['./lib/less-browser/index.js'], options: { - alias: ["promise/polyfill.js:promise"] + alias: ["promise/polyfill.js:promise"], + browserifyOptions: { + standalone: 'less-browser' + } }, dest: 'tmp/less.js' }