Skip to content

Commit f39387d

Browse files
committed
Update examples to use bundle tracker v2.0.0
1 parent a1935f6 commit f39387d

File tree

7 files changed

+10
-7
lines changed

7 files changed

+10
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ 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+
## [2.0.0] -- 2023-02-24
9+
- Update examples to use `[email protected]` API and keep version parity with it
10+
811
## [1.8.1] -- 2023-02-06
912
- Add a `FakeWebpackLoader` for running tests
1013

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = {
4545
filename: "[name]-[hash].js"
4646
},
4747
plugins: [
48-
new BundleTracker({filename: './webpack-stats.json'})
48+
new BundleTracker({path: __dirname, filename: 'webpack-stats.json'})
4949
],
5050
}
5151
```
@@ -372,7 +372,7 @@ module.exports = {
372372
filename: "[name]-[hash].js"
373373
},
374374
plugins: [
375-
new BundleTracker({ filename: './webpack-stats.json' })
375+
new BundleTracker({ path: __dirname, filename: 'webpack-stats.json' })
376376
]
377377
}
378378
```

examples/code-splitting/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = {
1515
},
1616

1717
plugins: [
18-
new BundleTracker({filename: './webpack-stats.json'}),
18+
new BundleTracker({path: __dirname, filename: 'webpack-stats.json'}),
1919
],
2020

2121
module: {

examples/hot-reload/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ module.exports = {
1414
},
1515

1616
plugins: [
17-
new BundleTracker({filename: './webpack-stats.json'}),
17+
new BundleTracker({path: __dirname, filename: 'webpack-stats.json'}),
1818
new MiniCssExtractPlugin({
1919
filename: '[name]-[hash].css',
2020
chunkFilename: '[name]-[hash].css',

examples/simple/webpack.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ module.exports = {
1313
},
1414

1515
plugins: [
16-
new BundleTracker({filename: './webpack-stats.json'}),
16+
new BundleTracker({path: __dirname, filename: 'webpack-stats.json'}),
1717
new MiniCssExtractPlugin({
1818
filename: '[name]-[hash].css',
1919
chunkFilename: '[name]-[hash].css',

tests/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"react": "^16.0.0",
1616
"webpack": "^4.0.0",
1717
"compression-webpack-plugin": "^6.1.1",
18-
"webpack-bundle-tracker": "1.8.1",
18+
"webpack-bundle-tracker": "2.0.0",
1919
"webpack-cli": "^3.3.10",
2020
"webpack-dev-server": "^3.0.0"
2121
}

webpack_loader/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
__author__ = 'Owais Lone'
2-
__version__ = '1.8.1'
2+
__version__ = '2.0.0'
33

44
import django
55

0 commit comments

Comments
 (0)