Skip to content

Instantly share code, notes, and snippets.

@tistaharahap
Created August 17, 2013 19:12
Show Gist options
  • Save tistaharahap/6258325 to your computer and use it in GitHub Desktop.
Save tistaharahap/6258325 to your computer and use it in GitHub Desktop.
Flask-Assets - Bundle
assets = Environment(app)
coffee = Bundle(
'coffee/models.coffee',
'coffee/app.coffee',
filters='coffeescript',
output='js/app.js'
)
assets.register('coffee_app', coffee)
js = Bundle(
'js/jquery.js',
'js/handlebars.js',
filters='rjsmin',
output='js/libs.js'
)
assets.register('js_libs', js)
css = Bundle(
'css/normalize.css',
'css/main.css',
filters='cssmin',
output='css/min.css'
)
assets.register('css_all', css)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment