old_contents: # -*- coding: utf-8 -*-
  from flask_assets import Bundle, Environment
  
  css = Bundle(
      Bundle('css/bootstrap.less',
             output='css/bootstrap.css',
             filters='less',
      ),
      'libs/bootstrap-tagsinput/dist/bootstrap-tagsinput.css',
      'libs/jQuery-QueryBuilder/dist/css/query-builder.default.css',
      'css/style.css',
      filters='cssmin',
      output='public/css/common.css',
  )
  
  js = Bundle(
      'libs/jQuery/dist/jquery.js',
      'libs/bootstrap/dist/js/bootstrap.js',
      'libs/bootstrap-tagsinput/dist/bootstrap-tagsinput.js',
      'libs/jquery-extendext/jQuery.extendext.js',
      'libs/jQuery-QueryBuilder/dist/js/query-builder.standalone.js',
      'js/plugins.js',
      filters='jsmin',
      output='public/js/common.js',
  )
  
  assets = Environment()
  
  assets.register('js_all', js)
  assets.register('css_all', css)
  
new_contents: # -*- coding: utf-8 -*-
  from flask_assets import Bundle, Environment
  
  css = Bundle(
      Bundle('css/bootstrap.less',
             depends=('**/*.less'),
             output='css/bootstrap.css',
             filters='less',
      ),
      'libs/bootstrap-tagsinput/dist/bootstrap-tagsinput.css',
      'libs/jQuery-QueryBuilder/dist/css/query-builder.default.css',
      'css/style.css',
      filters='cssmin',
      output='public/css/common.css',
  )
  
  js = Bundle(
      'libs/jQuery/dist/jquery.js',
      'libs/bootstrap/dist/js/bootstrap.js',
      'libs/bootstrap-tagsinput/dist/bootstrap-tagsinput.js',
      'libs/jquery-extendext/jQuery.extendext.js',
      'libs/jQuery-QueryBuilder/dist/js/query-builder.standalone.js',
      'js/plugins.js',
      filters='jsmin',
      output='public/js/common.js',
  )
  
  assets = Environment()
  
  assets.register('js_all', js)
  assets.register('css_all', css)
  
subject: add depends to bundle to disable caching and update css on changes to less variables