Closed bartlomiejzuber closed 4 years ago
That would be a lovely improvement! This action uses size-plugin-core
, which should be able to perform the hash stripping, so my guess is that this is actually a bug.
One workaround is to use process.env.GITHUB_ACTIONS
in webpack.config.js
to determine when the build task runs from Github and use an alternative naming convention for chunks, eg.
output: {
chunkFilename: process.env.GITHUB_ACTIONS
? '[name].js'
: '[id].js',
}
(see https://webpack.js.org/configuration/output/#outputchunkfilename)
This action doesn't work well when build produces chunks with generated hash.
Please make it possible to provide stripHashRegex which will be passed to stripHash function of https://github.com/GoogleChromeLabs/size-plugin .
Will try to provide PR with change with this.