Page MenuHomePhabricator

D6989.id23570.diff
No OneTemporary

D6989.id23570.diff

diff --git a/lib/webpack/shared.cjs b/lib/webpack/shared.cjs
--- a/lib/webpack/shared.cjs
+++ b/lib/webpack/shared.cjs
@@ -262,6 +262,7 @@
},
plugins: [
...sharedPlugins,
+ ...baseConfig.plugins,
new webpack.DefinePlugin({
'process.env': {
NODE_ENV: JSON.stringify(env.prod ? 'production' : 'development'),
diff --git a/web/webpack.config.cjs b/web/webpack.config.cjs
--- a/web/webpack.config.cjs
+++ b/web/webpack.config.cjs
@@ -86,6 +86,16 @@
};
const baseWebWorkersConfig = {
+ plugins: [
+ new CopyPlugin({
+ patterns: [
+ {
+ from: 'node_modules/sql.js/dist/sql-wasm.wasm',
+ to: path.join(__dirname, 'dist'),
+ },
+ ],
+ }),
+ ],
entry: {
pushNotif: './push-notif/service-worker.js',
},

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 9:36 AM (13 h, 7 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2703281
Default Alt Text
D6989.id23570.diff (808 B)

Event Timeline