From 1c66c2e8307026c8d23d582fa17ccb39772b7520 Mon Sep 17 00:00:00 2001 From: "Fabio C. Barrionuevo da Luz" Date: Tue, 23 May 2023 12:36:29 -0300 Subject: [PATCH] Fix compatibility webpack-bundle-tracker>=2.0.0 js library required after upgrade django-webpack-loader to >=2.0.0 --- {{cookiecutter.project_slug}}/webpack/common.config.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/{{cookiecutter.project_slug}}/webpack/common.config.js b/{{cookiecutter.project_slug}}/webpack/common.config.js index 6aba2bc77..d95434dbd 100644 --- a/{{cookiecutter.project_slug}}/webpack/common.config.js +++ b/{{cookiecutter.project_slug}}/webpack/common.config.js @@ -20,7 +20,8 @@ module.exports = { }, plugins: [ new BundleTracker({ - filename: path.resolve(__dirname, '../webpack-stats.json'), + path: path.resolve(path.join(__dirname, '../')), + filename: 'webpack-stats.json', }), new MiniCssExtractPlugin({ filename: 'css/[name].[contenthash].css' }), ],