Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Readme
Bundles multiple css or js files into one to reduce worker load for development server (flask) or webserver (nginx) connections
from flask import Flask
from static_bundle import register_extension
app = Flask(__name__, static_folder='static')
register_extension(app)
{% bundler 'cache/vendor.css' %}
<link rel="stylesheet" type="text/css"
href="{{ file_path_for('static', filename = 'fontawesome-free-5.7.1-web/css/fontawesome.min.css') }}">
<link rel="stylesheet" type="text/css"
href="{{ file_path_for('static', filename = 'css/bootstrap_table_1.18.3/bootstrap-table.css') }}">
<link rel="stylesheet" type="text/css"
href="{{ file_path_for('static', filename = 'css/bootstrap_table_1.18.3/extensions/filter-control/bootstrap-table-filter-control.css') }}">
<link rel="stylesheet" type="text/css" href="{{ file_path_for('static', filename = 'css/datetime_picker_css.css') }}">
{% endbundler %}
This will generate cache/vendor.css
inside static folder and generate final output like below
<link rel="stylesheet" type="text/css" href="/static/cache/vendor.css">
Please create github issue if you encounter any problem.
FAQs
Bundles multiple css/js files into one and reduce request time
We found that static-bundler demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).