javascript - What is the "//= require bootstrap/affix" notation for? Is there any grunt tool that uses it? -


lately switched bootstrap-sass repository bootstrap-sass-official , noticed unfamiliar in bootstrap.js file, namely:

//= require bootstrap/affix //= require bootstrap/alert //= require bootstrap/button //= require bootstrap/carousel //= require bootstrap/collapse //= require bootstrap/dropdown //= require bootstrap/tab //= require bootstrap/transition //= require bootstrap/scrollspy //= require bootstrap/modal //= require bootstrap/tooltip //= require bootstrap/popover 

i understand include 1 file (bootstrap.js) tells require (import) partials bootstrap directory. however, sure not part of native javascript, , couldn't find on google it.

can enlighten me , tell piece of software should understand notation , reponsible building/getting partials code? or simple comment (if is.. why on earth create seperate file this?)?

edit: use grunt build assets. there grunt tool uses notation or ignore , reference partials in layout?

loostro, ruby on rails for, compile assets in specific order. //= notation lets sprockets know include files. can learn more part of rails, called asset pipeline, here: http://guides.rubyonrails.org/asset_pipeline.html, or hartl's perfect intro guide, here: http://ruby.railstutorial.org/chapters/filling-in-the-layout#sec-sass_and_the_asset_pipeline


Comments

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -