Skip to content

Instantly share code, notes, and snippets.

@planetoftheweb
Created June 20, 2014 21:05
Show Gist options
  • Save planetoftheweb/3aa3f042a87e16dbdf97 to your computer and use it in GitHub Desktop.
Save planetoftheweb/3aa3f042a87e16dbdf97 to your computer and use it in GitHub Desktop.
Bootstrap loader for Prepros
// @prepros-prepend "jquery.js"
// @prepros-prepend "affix.js"
// @prepros-prepend "transition.js"
// @prepros-prepend "tooltip.js"
// @prepros-prepend "alert.js"
// @prepros-prepend "button.js"
// @prepros-prepend "carousel.js"
// @prepros-prepend "collapse.js"
// @prepros-prepend "dropdown.js"
// @prepros-prepend "modal.js"
// @prepros-prepend "popover.js"
// @prepros-prepend "scrollspy.js"
// @prepros-prepend "tab.js"
@iamjoshellis
Copy link

Prepress team state no space between ‘@‘ and ‘/‘ see:
http://discuss.prepros.io/t/concatenate-and-minify-javascript/19. Some
user’s have reported issues with this, see:
http://stackoverflow.com/questions/19653214/concatenating-javascript-fil
es-with-prepros-fails. I’ve tested this and found no issues, but better
safe then sorry!

See: https://gist.github.com/iamjoshellis/b35bce2dd066d1757c6d for fix.

Sorry can't pr Gist's yet!

@mutuadavid93
Copy link

Alternatively you can use Gulp.js and through these plugins: gulp-concat, gulp-less and gulp-uglify to join all your bootstrap.less + custom.less, all the js files in the order illustrated by villalobos + custom.js then minify the final result into single bootstrap.css and bootstrap.js RESPECTIVELY. Thanks from KENYA.

@mutuadavid93
Copy link

mutuadavid93 commented Sep 2, 2016

Check out alternative for this using gulpjs here: http://goo.gl/Oeh6bu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment