- BREAKING: The minimum supported Django version is now 3.2 (other versions may work, but are not tested)
- BREAKING: Drop support for Python 3.7 and below
- BREAKING: Drop support for Ruby-based Sass compiler
- Ruby-based Sass compiler is deprecated and will be removed in 3.0
- Added support for Dart Sass, see documentation on how to enable it. Dart Sass will become the default Sass compiler starting from 3.0
- Fix the bug with a greedy regex in the URL converter
- Ensure compatibility with the latest versions of compilers:
- [email protected] (may break compatibility with older versions)
- [email protected]
- [email protected]
- [email protected]
- Fix incorrect source map URL with
libsass
- Add support for Django 4.1
- Drop Python 3.5 support
- Drop Django 1.x support
- Add support for Django 4.0
- Drop Python 2.x support
- Add support for Django 3.0 and 3.1
- Add
clean_css
option to LESS compiler - Fix URL converter to properly handle
url(..)
not followed directly by;
- Fix
setup.py
to add compatibility with Python 3.4 and below.
- Remove deprecated settings:
COFFEESCRIPT_EXECUTABLE
,SCSS_EXECUTABLE
,SCSS_USE_COMPASS
,LESS_EXECUTABLE
- Add
--ignore-dependencies
option tocompilestatic
command - Add
--delete-stale-files
option tocompilestatic
command
- Bugfix: properly handle the URLs containing parenthesis or quotes
- Prevent detection of imports in comments (SCSS)
- Add support for Django 2.0
- Add support for Django 1.11
- Drop support for Django 1.6
- Add
include_path
option to LESS compiler - Take account of
load_paths
option when doing inline compilation withlibsass
- Bugfix: take account of additional compiler options when doing inline compilation with SASS
- Add support for Django 1.10 and Python 3.5
- Improve support for
load_paths
setting in SCSS/SASS compilers.
- Fix the
run_command
utility function to rely on process return code rather than stderr to determine if compilation has finished successfully. WARNING! Changes inrun_command
are backward incompatible. If you use this function in your custom compiler you should update your code.
- Add support for
--presets
option in Babel compiler. See babel-cli [options <https://babeljs.io/docs/usage/options/>]{.title-ref} for more information.
- Fix Stylus compiler to actually enable support for detecting changes in imported files
- Add
precision
option to SASS / SCSS / LibSass compilers. Set it to 8 or more if you compile Bootstrap. - Add
output_style
option to SASS / SCSS / LibSass compilers. - Enable verbose output for
compilestatic
management command
- Add LiveScript compiler
- Add support for
--global-var
option in LESS compiler - Add SCSS / SASS compiler based on Libsass
- Add source maps support for SASS/SCSS
- Add source maps support for LESS
- Add source maps support for CoffeeScript
- Add source maps support for Stylus
- Add source maps support for Babel
- Add Handlebars compiler
- Add support for Django 1.9
- Add
plugins
parameter to Babel compiler - Add
load_paths
parameter to SASS/SCSS compilers
- Add
modules
parameter to Babel compiler - Allow to install Watchdog with
pip install django-static-precompiler[watch]
- Add
compile
template filter - Deprecate
{% compile %}
template tag - The following compiler specific template tags are REMOVED:
{% coffeescript %}
{% inlinecoffeescript %}
{% sass %}
{% inlinesass %}
{% scss %}
{% inlinescss %}
{% less %}
{% inlineless %}
- Add Stylus compiler
- Compiler options are specified with
STATIC_PRECOMPILER_COMPILERS
setting. - The following settings are DEPRECATED:
COFFEESCRIPT_EXECUTABLE
SCSS_EXECUTABLE
SCSS_USE_COMPASS
LESS_EXECUTABLE
-C
(--no-cache
) flag is removed from SASS/SCSS compilers- Add
STATIC_PRECOMPILER_LIST_FILES
setting - Add Babel compiler
- Add
{% inlinecompile %}
template tag - The following compiler specific template tags are DEPRECATED:
{% coffeescript %}
{% inlinecoffeescript %}
{% sass %}
{% inlinesass %}
{% scss %}
{% inlinescss %}
{% less %}
{% inlineless %}
- Use Django 1.7 migrations
- BUGFIX: fix sass imports from scss and vice versa
- BUGFIX: make sure that
compilestatic
works ifwatchdog
isn't installed. - BUGFIX: fix compilation error when dependency file was removed or renamed
- Add
compilestatic
management command (replacesstatic_precompiler_watch
) - Add
STATIC_PRECOMPILER_DISABLE_AUTO_COMPILE
to settings - Add
STATIC_PRECOMPILER_CACHE_NAME
to settings - Bugfixes
- Add
STATIC_PRECOMPILER_PREPEND_STATIC_URL
to settings - Add
{% compile %}
template tag
- Update the parsing of
@import
statements. Fix the bug with URLs containing commas.
static_precompiler_watch
: watch for changes in all directories handled by static finders, not onlySTATIC_ROOT
static_precompiler_watch
: add--no-initial-scan
option
- Fix SCSS compilation error when importing Compass styles
- Add Python 3 support
- Add
compile_static
andcompile_static_lazy
utility functions.
- Bug fixes
- Add Windows compatibility
- Reduce the max length of varchar fields in Dependency model to meet MySQL limitations
- static_precompiler_watch: don't fall with exception on compilation errors or if source file is not found
- Initial release