We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'm able to do the following in webpack:
module.exports = { ... output: { path: path.resolve('../webpack_bundles/[hash]'), filename: '[name].js', }, ... };
But django-webpack-loader doesn't allow that. Here you expect to have a path to the chunk. But if the hash is in the path, it's not known in advance.
django-webpack-loader
Can't we add, say, BUNDLE_DIR_PATH and do something along these lines?
BUNDLE_DIR_PATH
import os.path if 'BUNDLE_DIR_PATH' in self.config: relpath = os.path.relpath(chunk['path'], self.config['BUNDLE_DIR_PATH'])
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm able to do the following in webpack:
But
django-webpack-loader
doesn't allow that. Here you expect to have a path to the chunk. But if the hash is in the path, it's not known in advance.Can't we add, say,
BUNDLE_DIR_PATH
and do something along these lines?The text was updated successfully, but these errors were encountered: