summaryrefslogtreecommitdiffstats
path: root/Gruntfile.js
diff options
context:
space:
mode:
authorSamy Pessé <samypesse@gmail.com>2014-04-06 17:13:32 -0700
committerSamy Pessé <samypesse@gmail.com>2014-04-06 17:13:32 -0700
commit4c36c592c1cccfbbb7843d74846a5f908bfcab4e (patch)
treee311663f4303f221b14559217fb5ec02fdb2dc04 /Gruntfile.js
parentc166a9863ec6c098d5dc2ac11f383214ea9bb246 (diff)
parent9ffb1a062f6bfa4c3253eb40c89ba54e6e429fe4 (diff)
downloadgitbook-4c36c592c1cccfbbb7843d74846a5f908bfcab4e.zip
gitbook-4c36c592c1cccfbbb7843d74846a5f908bfcab4e.tar.gz
gitbook-4c36c592c1cccfbbb7843d74846a5f908bfcab4e.tar.bz2
Merge pull request #40 from GitbookIO/feature/searchclient
Feature/searchclient
Diffstat (limited to 'Gruntfile.js')
-rw-r--r--Gruntfile.js8
1 files changed, 6 insertions, 2 deletions
diff --git a/Gruntfile.js b/Gruntfile.js
index c0ab169..4a6a8f4 100644
--- a/Gruntfile.js
+++ b/Gruntfile.js
@@ -28,14 +28,15 @@ module.exports = function (grunt) {
baseUrl: "theme/javascript/",
out: "theme/assets/app.js",
preserveLicenseComments: false,
- optimize: "uglify",
+ optimize: "none", //"uglify",
include: ["requireLib"],
paths: {
"jQuery": 'vendors/jquery',
"lodash": 'vendors/lodash',
"requireLib": 'vendors/require',
"Mousetrap": 'vendors/mousetrap',
- "mixpanel": 'vendors/mixpanel'
+ "mixpanel": 'vendors/mixpanel',
+ "lunr": path.join(__dirname, "node_modules/lunr/lunr")
},
shim: {
'jQuery': {
@@ -49,6 +50,9 @@ module.exports = function (grunt) {
},
'mixpanel': {
exports: 'mixpanel'
+ },
+ 'lunr': {
+ exports: 'lunr'
}
}
}