From ecf74706a66e1f330e96d98fde6242a761b8a1fb Mon Sep 17 00:00:00 2001 From: Jaybill McCarthy Date: Fri, 13 May 2016 06:59:12 -0700 Subject: [PATCH] Removed script loading (will be done with react-boostrap) --- bootstrap-scripts.loader.js | 26 -------------------------- index.js | 1 - 2 files changed, 27 deletions(-) delete mode 100644 bootstrap-scripts.loader.js diff --git a/bootstrap-scripts.loader.js b/bootstrap-scripts.loader.js deleted file mode 100644 index 919a4ce..0000000 --- a/bootstrap-scripts.loader.js +++ /dev/null @@ -1,26 +0,0 @@ - -var scripts = [ - 'transition', - 'alert', - 'button', - 'carousel', - 'collapse', - 'dropdown', - 'modal', - 'tooltip', - 'popover', - 'scrollspy', - 'tab', - 'affix' -] - -module.exports = function () {}; -module.exports.pitch = function (configPath) { - this.cacheable(true); - var config = require(configPath); - return scripts.filter(function (script) { - return config.scripts[script]; - }).map(function (script) { - return "require(" + JSON.stringify("bootstrap/js/" + script) + ");"; - }).join("\n"); -} diff --git a/index.js b/index.js index f68ebbd..63d1dc6 100644 --- a/index.js +++ b/index.js @@ -1,2 +1 @@ require("style!css!less!./bootstrap-styles!./bootstrap.config.js"); -require("./bootstrap-scripts!./bootstrap.config.js");