From 7a428f4dc88ba78950d7ba71fffcdea06527e37f Mon Sep 17 00:00:00 2001 From: JC Brand Date: Tue, 23 Aug 2016 09:35:34 +0000 Subject: [PATCH] Configure path for almond.js --- config.js | 1 + src/build-mobile.js | 2 +- src/build-no-dependencies.js | 2 +- src/build-no-jquery.js | 2 +- src/build.js | 2 +- 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/config.js b/config.js index 9e6e8926c..4657ac72d 100644 --- a/config.js +++ b/config.js @@ -14,6 +14,7 @@ if (typeof(require) === 'undefined') { require.config({ baseUrl: '.', paths: { + "almond": "node_modules/almond/almond", "backbone": "node_modules/backbone/backbone", "backbone.browserStorage": "node_modules/backbone.browserStorage/backbone.browserStorage", "backbone.overview": "node_modules/backbone.overview/backbone.overview", diff --git a/src/build-mobile.js b/src/build-mobile.js index b2a7818aa..18967600c 100644 --- a/src/build-mobile.js +++ b/src/build-mobile.js @@ -1,6 +1,6 @@ ({ baseUrl: "../", - name: "node_modules/almond/almond.js", + name: "almond", out: "../dist/converse-mobile.min.js", mainConfigFile: '../config.js', excludeShallow: [ diff --git a/src/build-no-dependencies.js b/src/build-no-dependencies.js index 38c45a332..5d0e56204 100644 --- a/src/build-no-dependencies.js +++ b/src/build-no-dependencies.js @@ -1,6 +1,6 @@ ({ baseUrl: "../", - name: "node_modules/almond/almond.js", + name: "almond", out: "../dist/converse-no-dependencies.min.js", include: ['converse'], excludeShallow: [ diff --git a/src/build-no-jquery.js b/src/build-no-jquery.js index 5092fe0b8..26c7ec938 100644 --- a/src/build-no-jquery.js +++ b/src/build-no-jquery.js @@ -1,6 +1,6 @@ ({ baseUrl: "../", - name: "node_modules/almond/almond.js", + name: "almond", out: "../dist/converse.nojquery.min.js", include: ['converse'], exclude: ['jquery', 'jquery-private'], diff --git a/src/build.js b/src/build.js index 02e49d02d..99bb034ca 100644 --- a/src/build.js +++ b/src/build.js @@ -1,6 +1,6 @@ ({ baseUrl: "../", - name: "node_modules/almond/almond.js", + name: "almond", out: "../dist/converse.min.js", mainConfigFile: '../config.js', include: ['converse'],