-
Notifications
You must be signed in to change notification settings - Fork 17
Add feature to configure filenames to append hash #184
Comments
Which files would you like to rename? |
All of them. Anything the plugin outputs. For example, |
Thanks for clarifying. If the goal is to overcome caching issues, it should be enough if you specify Making the name of each individual file is more involved however and should rather be supported upstream by |
I didn't realize that It'd still be nice to have more control over it, especially if for some reason you wanted certain files not to have the hash or whatever prefix you set. I think if there are name clashes that's the end-user's problem. Just overwrite as usual. I agree though this would probably to some degree need |
So, experimenting with If I set
Essentially, as far as I can tell, only 4 is working correctly. new WebappWebpackPlugin({
favicons: {
appleStatusBarStyle: 'default',
appDescription: '...',
developerName: '...',
developerURL: '...',
appShortName: '...',
theme_color: '#1976d2',
background: '#fafafa',
start_url: '/',
version,
appName: '...',
display: 'standalone',
icons: {
appleStartup: false,
appleIcon: true,
favicons: true,
android: true,
firefox: true,
windows: false,
yandex: false,
coast: false
},
lang: 'en-US',
dir: 'ltr'
},
inject: true,
prefix: '',
cache: true,
logo: './icon.png'
}), |
Hi @MrXyfir, somehow your latest comment went under my radar, apologies for the late response. I'm not able to reproduce the behavior you describe, in fact there is a unit test to verify that it works as expected. As you can see in the test fixtures, setting
Could you share more details of your setup? I suspect something else, perhaps another plugin, might be interfering with the behavior of |
Odd. I'll have to experiment again with it when I get a chance. If you'd like to see the full webpack config you can find it here: https://github.com/xyfir/illuminsight/blob/master/web/webpack.config.js Obviously I'm not using |
Something like webpack's
output.filename
so we can set a string like'[name].[hash].[ext]'
or a function.The text was updated successfully, but these errors were encountered: