Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3532711
D6989.id23570.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
808 B
Referenced Files
None
Subscribers
None
D6989.id23570.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D6989: [web-db] copy `sql-wasm.wasm` from node modules to `dist`
Attached
Detach File
Event Timeline
Log In to Comment