mirror of
https://github.com/GoogleChromeLabs/squoosh.git
synced 2025-11-15 10:09:45 +00:00
Fixup sdk.js deployment
This commit is contained in:
@@ -44,7 +44,15 @@ module.exports = async function (_, env) {
|
||||
devtool: isProd ? 'source-map' : 'inline-source-map',
|
||||
stats: 'minimal',
|
||||
output: {
|
||||
filename: isProd ? '[name].[chunkhash:5].js' : '[name].js',
|
||||
filename: chunkData => {
|
||||
if(chunkData.chunk.name === 'sdk') {
|
||||
return 'sdk.js';
|
||||
}
|
||||
if(!isProd) {
|
||||
return '[name].js';
|
||||
}
|
||||
return '[name].[chunkhash:5].js'
|
||||
},
|
||||
chunkFilename: '[name].[chunkhash:5].js',
|
||||
path: path.join(__dirname, 'build'),
|
||||
publicPath: '/',
|
||||
|
||||
Reference in New Issue
Block a user