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");