def init(app): """ Initialise assets on the app. """ environment = Assets(app) environment.register("css", Bundle(css, output="assets/css/combined.%s.css", filters=cssmin)) environment.register("js", Bundle(js, output="assets/js/combined.%s.js", filters=uglifyjs)) return environment
def init(app): """ Initialise assets on the app. """ assets = Assets(app) assets.register('css', Bundle(css, output='__bundles/css/bundle.%s.css', filters=cssmin, static_folder=static_folder, cache_file='{0}/__bundles/css.cache'.format(static_folder))) assets.register('js', Bundle(js, output='__bundles/js/combined.%s.js', filters=uglifyjs, static_folder=static_folder, cache_file='{0}/__bundles/js.cache'.format(static_folder))) assets.build_all() return assets
def init(app): """ Initialise assets on the app. """ environment = Assets(app) environment.register( 'css', Bundle(css, output='assets/css/combined.%s.css', filters=cssmin)) environment.register( 'js', Bundle(js, output='assets/js/combined.%s.js', filters=uglifyjs)) return environment
def init(app): """ Initialise assets on the app. """ assets = Assets(app) assets.register( 'css', Bundle(css, output='__bundles/css/bundle.%s.css', filters=cssmin, static_folder=static_folder, cache_file='{0}/__bundles/css.cache'.format(static_folder))) assets.register( 'js', Bundle(js, output='__bundles/js/combined.%s.js', filters=uglifyjs, static_folder=static_folder, cache_file='{0}/__bundles/js.cache'.format(static_folder))) assets.build_all() return assets