Multithread AVIF PoC

This commit is contained in:
Ingvar Stepanyan
2020-09-23 12:58:23 +01:00
committed by Ingvar Stepanyan
parent 63ac34a662
commit 685558847f
18 changed files with 527 additions and 226 deletions

View File

@@ -164,7 +164,7 @@ module.exports = async function(_, env) {
type: 'webassembly/experimental',
},
{
test: /\.(png|svg|jpg|gif)$/,
test: /\.(png|svg|jpg|gif|worker\.js)$/,
loader: 'file-loader',
options: {
name: '[name].[hash:5].[ext]',
@@ -174,8 +174,7 @@ module.exports = async function(_, env) {
},
plugins: [
new webpack.IgnorePlugin(
/(fs|crypto|path)/,
/[/\\]codecs[/\\]/
/^(fs|crypto|path|perf_hooks|worker_threads)$/
),
// Pretty progressbar showing build progress: