Skip to content

Releases: django-webpack/django-webpack-loader

0.2.0

10 Sep 09:31
Compare
Choose a tag to compare

Upgrading to 0.2

Pre-0.2 settings

WEBPACK_LOADER = {
        'BUNDLE_DIR_NAME': 'bundles/',
        'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats.json')
}

0.2 settings

WEBPACK_LOADER = {
    'DEFAULT': {
        'BUNDLE_DIR_NAME': 'bundles/',
        'STATS_FILE': os.path.join(BASE_DIR, 'webpack-stats.json'),
    }
}

New stuff

  • get_files template tag.
    Thanks to @sbaechler, we can now fetch a list of files from a bundle and constuct custom tags or use the file URLs in javascript.
  • Multiple webpack configurations
    Thanks to @cybercase, webpack loader can now consume the output of multiple stats files in the same project!

0.1.2

25 May 20:10
Compare
Choose a tag to compare
Fixed setup.py

0.0.8

25 May 06:11
Compare
Choose a tag to compare
0.0.8 Pre-release
Pre-release

Introducing render by file extension feature.

render_bundle can take second argument that is a file extension. If the file extension is provided, only files matching that extension will be rendered by the tag. For example,

{% load render_bundle from webpack_loader %}

<html>
  <head>
    {% render_bundle 'main' 'css' %}
  </head>
  <body>
    ....
    {% render_bundle 'main' 'js' %}
  </body>
</head>

will render CSS files in <head> and JS files just before </body>

0.0.6 breaking changes

24 May 08:42
Compare
Choose a tag to compare
Pre-release

This release introduces the BUNDLE_DIR_NAME setting and removed BASE_URL setting.

BUNDLE_DIR_NAME is the name, actually relative path of the directory in which webpack will store the bundles. It is relative to it's parent static dir.

For example, if ./assets/ is your static dir and bundles are stored in ./assets/bundles/, then your BUNDLE_DIR_NAME should be bundles/

0.0.4.1

20 May 20:22
Compare
Choose a tag to compare
0.0.4.1 Pre-release
Pre-release
bumped version

Pre release

16 May 17:15
Compare
Choose a tag to compare
Pre release Pre-release
Pre-release
0.0.1

First release