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
Hi, i use module with such config:
assetRequireHook({ extensions: ['jpg', 'png', 'gif', 'svg'], publicPath: '/', });
And file-loader as:
test: /\.(svg|png|jpg|gif)$/, use: { loader: 'file-loader', options: { name: '[hash].[ext]', }, },
But i get different file name from file-loader and module, example:
module – cba2c82d0b1e651b5b486aa2433d24a8.png file-loader – 63acfdc0e9ea8e6e0e50b2178255dc88.png
cba2c82d0b1e651b5b486aa2433d24a8.png
63acfdc0e9ea8e6e0e50b2178255dc88.png
How can i get the same file names?
The text was updated successfully, but these errors were encountered:
you have to specifie the type of hashing for both of them, it seems that the default type is not same for any of them
require('asset-require-hook')({ extensions: ['jpg', 'png', 'gif'], name: '/assets/[md5:hash].[ext]', });
{ test: /\.(png|gif|jpg)$/, use: [ { 'loader': 'file-loader', options: { name: 'assets/[md5:hash].[ext]', } } ] },
Sorry, something went wrong.
No branches or pull requests
Hi, i use module with such config:
And file-loader as:
But i get different file name from file-loader and module, example:
module –
cba2c82d0b1e651b5b486aa2433d24a8.png
file-loader –
63acfdc0e9ea8e6e0e50b2178255dc88.png
How can i get the same file names?
The text was updated successfully, but these errors were encountered: