Skip to content

Rikanishu/flask-static-bundle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

flask-static-bundle

Flask extension for static-bundle


Installation

Via pip:

    pip install flask-static-bundle

or from sources

    python setup.py install

Example

See examples/flaskapp for example of flask application which used this extension

Config Keys

  • STATIC_BUNDLE_INPUT_PATH - Input path, development static root directory.
  • STATIC_BUNDLE_OUTPUT_PATH - Path for build in production env.
  • STATIC_BUNDLE_ENV - Current env ("development" / "production").
  • STATIC_BUNDLE_REWRITE - Rewrite static with standard route handler. This option required creating app with option static_folder=None:
app = Flask(__name__, static_folder=None)
  • STATIC_BUNDLE_PREFIX_URL - Url for static rewrite, "/static/" by default (right slash required)

About

Flask extension for static-bundle

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published