Changeset View
Changeset View
Standalone View
Standalone View
web/webpack.config.cjs
Show First 20 Lines • Show All 51 Lines • ▼ Show 20 Lines | plugins: [ | ||||
new CopyPlugin({ | new CopyPlugin({ | ||||
patterns: [ | patterns: [ | ||||
{ | { | ||||
from: 'node_modules/@matrix-org/olm/olm.wasm', | from: 'node_modules/@matrix-org/olm/olm.wasm', | ||||
to: path.join(__dirname, 'dist'), | to: path.join(__dirname, 'dist'), | ||||
}, | }, | ||||
], | ], | ||||
}), | }), | ||||
new CopyPlugin({ | |||||
patterns: [ | |||||
{ | |||||
from: | |||||
'node_modules/@commapp/opaque-ke-wasm' + | |||||
'/pkg/comm_opaque2_wasm_bg.wasm', | |||||
to: path.join(__dirname, 'dist', 'opaque-ke.wasm'), | |||||
}, | |||||
], | |||||
}), | |||||
], | ], | ||||
}; | }; | ||||
const baseProdBrowserConfig = { | const baseProdBrowserConfig = { | ||||
...baseBrowserConfig, | ...baseBrowserConfig, | ||||
plugins: [ | plugins: [ | ||||
new CopyPlugin({ | new CopyPlugin({ | ||||
patterns: [ | patterns: [ | ||||
{ | { | ||||
from: 'node_modules/@matrix-org/olm/olm.wasm', | from: 'node_modules/@matrix-org/olm/olm.wasm', | ||||
to: path.join(__dirname, 'dist', 'olm.[contenthash:12].wasm'), | to: path.join(__dirname, 'dist', 'olm.[contenthash:12].wasm'), | ||||
}, | }, | ||||
], | ], | ||||
}), | }), | ||||
new CopyPlugin({ | |||||
patterns: [ | |||||
{ | |||||
from: | |||||
'node_modules/@commapp/opaque-ke-wasm' + | |||||
'/pkg/comm_opaque2_wasm_bg.wasm', | |||||
to: path.join(__dirname, 'dist', 'opaque-ke.[contenthash:12].wasm'), | |||||
}, | |||||
], | |||||
}), | |||||
new WebpackManifestPlugin({ | new WebpackManifestPlugin({ | ||||
publicPath: '', | publicPath: '', | ||||
}), | }), | ||||
], | ], | ||||
}; | }; | ||||
const baseNodeServerRenderingConfig = { | const baseNodeServerRenderingConfig = { | ||||
externals: ['react', 'react-dom', 'react-redux'], | externals: ['react', 'react-dom', 'react-redux'], | ||||
▲ Show 20 Lines • Show All 83 Lines • Show Last 20 Lines |