Skip to content

Commit 76d8d80

Browse files
committed
Version 3.0.0
1 parent 6a07b23 commit 76d8d80

21 files changed

+218
-194
lines changed

.circleci/config.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ workflows:
77
matrix:
88
parameters:
99
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
10-
django-version: ["3.2", "4.0", "4.1", "4.2"]
10+
django-version: ["3.2", "4.0", "4.1", "4.2", "5.0"]
1111
exclude:
1212
- python-version: "3.11"
1313
django-version: "3.2"
@@ -81,7 +81,7 @@ jobs:
8181

8282
coverall:
8383
docker:
84-
- image: cimg/python:3.11-node
84+
- image: cimg/python:3.12-node
8585
steps:
8686
- run:
8787
name: Finish Coveralls

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ For more general information, view the [readme](README.md).
55
Releases are added to the
66
[github release page](https://github.com/ezhome/django-webpack-loader/releases).
77

8+
## [3.0.0] -- 2023-12-19
9+
10+
- Fix support for `publicPath: auto` in Webpack config, check updated examples at https://github.com/django-webpack/django-webpack-loader/tree/master/examples
11+
- Add support for Python 3.12
12+
- Add support for Django 5.0
13+
814
## [2.0.1] -- 2023-06-14
915
- Add support for Django 4.2
1016

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015 Owais Lone
3+
Copyright (c) 2023 Vinta Software
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ module.exports = {
5353
entry: "./assets/js/index",
5454
output: {
5555
path: path.resolve(__dirname, "assets/webpack_bundles/"),
56+
publicPath: "auto", // necessary for CDNs/S3/blob storages
5657
filename: "[name]-[contenthash].js",
5758
},
5859
plugins: [
@@ -178,6 +179,7 @@ module.exports = {
178179
output: {
179180
// Emit bundle files at "assets/webpack_bundles/":
180181
path: path.resolve(__dirname, "assets/webpack_bundles/"),
182+
publicPath: "auto", // necessary for CDNs/S3/blob storages
181183
filename: "[name]-[contenthash].js",
182184
},
183185
plugins: [
@@ -227,11 +229,11 @@ However, production usage for this package is **fairly flexible**, as the entire
227229

228230
### Hot reload
229231

230-
[Hot reload (Hot Module Replacement)](https://webpack.js.org/guides/hot-module-replacement/) is critical for a improving the development workflow. In case you wish to enable for your project, please check out [this example](https://github.com/django-webpack/django-webpack-loader/tree/master/examples/hot-reload), in particular how [webpack.config.js](https://github.com/django-webpack/django-webpack-loader/blob/master/examples/hot-reload/webpack.config.js) is configured. The key is to set the `devServer`.
232+
[Hot reload (Hot Module Replacement)](https://webpack.js.org/guides/hot-module-replacement/) is critical for a improving the development workflow. In case you wish to enable for your project, please check out [this example](https://github.com/django-webpack/django-webpack-loader/tree/master/examples/hot-reload), in particular how [webpack.config.js](https://github.com/django-webpack/django-webpack-loader/blob/master/examples/hot-reload/webpack.config.js) is configured. The key is to set the `publicPath` and `devServer`.
231233

232234
### Dynamic Imports
233235

234-
In case you wish to use [Dynamic Imports](https://webpack.js.org/guides/code-splitting/#dynamic-imports), please check out [this example](https://github.com/django-webpack/django-webpack-loader/tree/master/examples/dynamic-imports), in particular how [webpack.config.js](https://github.com/django-webpack/django-webpack-loader/blob/master/examples/dynamic-imports/webpack.config.js) is configured. The key is to set the `publicPath`.
236+
In case you wish to use [Dynamic Imports](https://webpack.js.org/guides/code-splitting/#dynamic-imports), please check out [this example](https://github.com/django-webpack/django-webpack-loader/tree/master/examples/dynamic-imports), in particular how [webpack.config.js](https://github.com/django-webpack/django-webpack-loader/blob/master/examples/dynamic-imports/webpack.config.js) is configured.
235237

236238
### Extra options for `webpack-bundle-tracker`
237239

@@ -469,8 +471,12 @@ To execute a command, run `make <command>` in the project's root directory.
469471
- `ENV`: The name of the virtual environment. (Default: `venv`)
470472
- `REPOSITORY`: The repository to publish the distribution packages to. (Default: `pypi`)
471473

474+
### Special Thanks
475+
476+
Django Webpack Loader was originally created by [Owais Lone](https://github.com/owais) and received contributions from more than 50 developers since its inception, as well as many others who assisted with issues, comments, articles, talks, etc. Thanks for everyone who's been part of Django Webpack Loader community!
477+
472478
## Commercial Support
473479

474480
[![alt text](https://avatars2.githubusercontent.com/u/5529080?s=80&v=4 "Vinta Logo")](https://www.vinta.com.br/)
475481

476-
This project is maintained by [Vinta Software](https://www.vinta.com.br/) and is used in products of Vinta's clients. We are always looking for exciting work, so if you need any commercial support, feel free to get in touch: [email protected]
482+
This project is currently maintained by [Vinta Software](https://www.vinta.com.br/) and is used in products of Vinta's clients. We are always looking for exciting work, so if you need any commercial support, feel free to get in touch: [email protected]

examples/code-splitting/package-lock.json

Lines changed: 40 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/code-splitting/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"description": "",
55
"main": "index.js",
6-
"author": "Owais Lone",
6+
"author": "Vinta Software",
77
"license": "MIT",
88
"devDependencies": {
99
"@babel/core": "^7.22.20",
@@ -13,7 +13,7 @@
1313
"react": "^18.2.0",
1414
"react-dom": "^18.2.0",
1515
"webpack": "^5.88.2",
16-
"webpack-bundle-tracker": "2.0.1",
16+
"webpack-bundle-tracker": "3.0.0",
1717
"webpack-cli": "^5.1.4",
1818
"webpack-dev-server": "^4.15.1"
1919
}

examples/code-splitting/webpack.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ module.exports = {
99
},
1010
output: {
1111
path: path.resolve(__dirname, "assets/webpack_bundles/"),
12+
publicPath: "auto",
1213
filename: "[name]-[contenthash].js",
1314
},
1415

examples/dynamic-imports/package-lock.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/dynamic-imports/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"version": "0.0.0",
44
"description": "",
55
"main": "index.js",
6-
"author": "Owais Lone",
6+
"author": "Vinta Software",
77
"license": "MIT",
88
"devDependencies": {
99
"@babel/core": "^7.22.20",
@@ -13,7 +13,7 @@
1313
"react": "^18.2.0",
1414
"react-dom": "^18.2.0",
1515
"webpack": "^5.88.2",
16-
"webpack-bundle-tracker": "2.0.1",
16+
"webpack-bundle-tracker": "3.0.0",
1717
"webpack-cli": "^5.1.4",
1818
"webpack-dev-server": "^4.15.1"
1919
},

examples/dynamic-imports/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
// our chunk generated by the dynamic import from "/" instead of "/static/".
1414
// Remember to also add `os.path.join(BASE_DIR, "assets", "webpack_bundles")` to
1515
// STATICFILES_DIRS in Django settings:
16-
publicPath: "/static/webpack_bundles/",
16+
publicPath: "auto", // or "/static/webpack_bundles/",
1717
filename: "[name]-[contenthash].js",
1818
},
1919

0 commit comments

Comments
 (0)