-
Notifications
You must be signed in to change notification settings - Fork 346
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support publicPath: "auto" #350
Closed
caseyjhol opened this issue
Jun 16, 2023
· 2 comments
· Fixed by django-webpack/webpack-bundle-tracker#119 or #384
Closed
Support publicPath: "auto" #350
caseyjhol opened this issue
Jun 16, 2023
· 2 comments
· Fixed by django-webpack/webpack-bundle-tracker#119 or #384
Comments
@caseyjhol, I agree this would be the best. Can you share your custom LOADER_CLASS? |
@caseyjhol I've made some changes add support for Install the fixes (not released yet):
Use a output like: const path = require("path");
module.exports = {
// ...
output: {
path: path.resolve("./frontend/webpack_bundles/"),
publicPath: "auto",
filename: "[name]-[chunkhash].js",
},
}; and let me know if it works for your use case. |
This was referenced Dec 1, 2023
Merged
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Currently, setting
publicPath: "auto"
results in a stats file with:"auto" is just prepended to publicPath. Which of course won't work out of the box. Considering "auto" is the default value in Webpack, it might be nice to support setting
publicPath: "auto"
and add a PUBLIC_PATH option to the loader config that would handle concatenation for us. We're using a custom LOADER_CLASS in the meantime.The text was updated successfully, but these errors were encountered: