Fic website building

This commit is contained in:
Andras Schmelczer 2025-07-08 21:09:33 +01:00
parent dd2a664d79
commit 23ae960372
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 25 additions and 16 deletions

View file

@ -3,18 +3,6 @@ const { merge } = require('webpack-merge');
const common = {
entry: './src/index.ts',
module: {
rules: [
{
test: /\.ts$/,
use: ['ts-loader'],
},
{
test: /\.wasm$/,
type: 'asset/inline',
},
],
},
optimization: {
// the consuming project should take care of minification
minimize: false,
@ -27,7 +15,25 @@ const common = {
},
},
performance: {
hints: false, // it's a library, no need to warn about its size
hints: false,
},
experiments: {
asyncWebAssembly: true,
},
module: {
rules: [
{
test: /\.ts$/,
use: ['ts-loader'],
},
{
test: /\.wasm$/,
type: 'asset/inline',
generator: {
dataUrl: (content) => content.toString('base64'),
},
},
],
},
};