mirror of
https://github.com/kiwix/kiwix-js.git
synced 2025-08-03 11:16:38 -04:00
parent
4c4440807f
commit
e9b4473aec
@ -20,7 +20,8 @@ const config = {
|
||||
}
|
||||
]
|
||||
],
|
||||
exclude: ['node_modules/**']
|
||||
exclude: ['node_modules/**'],
|
||||
compact: true // Force compacting for large files
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
@ -89,7 +89,7 @@ if (process.env.BUILD === 'production') {
|
||||
// Alter remaining lib references
|
||||
.replace(/([\\/])js[\\/]lib/g, '$1js')
|
||||
// Remove unneeded ASM/WASM binaries
|
||||
.replace(/["']www[\\/]js[\\/].*dec.*js["'],\s*/g, '')
|
||||
.replace(/['"]www[\\/]js[\\/].*dec.*js['"],\s*/g, '')
|
||||
);
|
||||
return result.code;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user