docs: use local wasm file

This commit is contained in:
Justineo
2024-07-24 11:37:03 +08:00
committed by GU Yiling
parent 6b98318504
commit 24ed18e439
3 changed files with 11 additions and 4 deletions

View File

@ -20,6 +20,14 @@ export default {
.test(/\.svg$/)
.type("asset/source");
config.module
.rule('wasm')
.test(/\.wasm$/)
.type('asset/resource')
.set('generator', {
filename: '[name].[hash:8][ext]'
})
config.plugin("define").tap(([options]) => [
{
...options,