Skip to content

Instantly share code, notes, and snippets.

@yv84
Forked from tistaharahap/app.py
Last active August 29, 2015 14:05
Show Gist options
  • Save yv84/35c80e774b5ddec93346 to your computer and use it in GitHub Desktop.
Save yv84/35c80e774b5ddec93346 to your computer and use it in GitHub Desktop.
assets = Environment(app)
assets.url = '/static'
assets.directory = app.config['ASSETS_DEST']
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