Changeset View
Changeset View
Standalone View
Standalone View
web/webpack.config.cjs
Show First 20 Lines • Show All 46 Lines • ▼ Show 20 Lines | devServer: { | ||||
static: { | static: { | ||||
directory: path.join(__dirname, 'dist'), | directory: path.join(__dirname, 'dist'), | ||||
}, | }, | ||||
}, | }, | ||||
plugins: [ | plugins: [ | ||||
new CopyPlugin({ | new CopyPlugin({ | ||||
patterns: [ | patterns: [ | ||||
{ | { | ||||
from: 'node_modules/@matrix-org/olm/olm.wasm', | from: 'node_modules/@commapp/olm/olm.wasm', | ||||
to: path.join(__dirname, 'dist'), | to: path.join(__dirname, 'dist'), | ||||
}, | }, | ||||
], | ], | ||||
}), | }), | ||||
], | ], | ||||
}; | }; | ||||
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/@commapp/olm/olm.wasm', | ||||
to: path.join(__dirname, 'dist', 'olm.[contenthash:12].wasm'), | to: path.join(__dirname, 'dist', 'olm.[contenthash:12].wasm'), | ||||
}, | }, | ||||
], | ], | ||||
}), | }), | ||||
new WebpackManifestPlugin({ | new WebpackManifestPlugin({ | ||||
publicPath: '', | publicPath: '', | ||||
}), | }), | ||||
], | ], | ||||
▲ Show 20 Lines • Show All 54 Lines • Show Last 20 Lines |