diff --git a/README.md b/README.md index 917f9d64..6a04397d 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,6 @@ -# django-webpack-loader +# django-webpack-loader for gzip + +Different from the original repository, it appends an extension in the creation of the tags (as .gzip). The append is also dynamic, and can be done for css or js [](https://circleci.com/gh/django-webpack/django-webpack-loader/tree/master) [](https://coveralls.io/github/django-webpack/django-webpack-loader?branch=master) @@ -297,6 +299,7 @@ WEBPACK_LOADER = { {% render_bundle 'main' 'js' 'DEFAULT' attrs='async charset="UTF-8"'%} + {% render_bundle 'main' 'js' 'DEFAULT' attrs='async charset="UTF-8"' suffix=".gz" %}
+ {% render_bundle 'main' 'js' suffix='.gz' %} +``` diff --git a/tests/app/templates/append_extensions.html b/tests/app/templates/append_extensions.html new file mode 100644 index 00000000..4c67f7b9 --- /dev/null +++ b/tests/app/templates/append_extensions.html @@ -0,0 +1,13 @@ +{% load render_bundle from webpack_loader %} + + +
+ +
+ {% render_bundle 'main' 'css' %} + + +
+