Flask extension for static-bundle
Via pip:
pip install flask-static-bundle
or from sources
python setup.py install
See examples/flaskapp for example of flask application which used this extension
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 optionstatic_folder=None
:
app = Flask(__name__, static_folder=None)
STATIC_BUNDLE_PREFIX_URL
- Url for static rewrite, "/static/" by default (right slash required)