Changeset View
Changeset View
Standalone View
Standalone View
web/webpack.config.cjs
Show First 20 Lines • Show All 80 Lines • ▼ Show 20 Lines | output: { | ||||
filename: 'app.build.cjs', | filename: 'app.build.cjs', | ||||
library: 'app', | library: 'app', | ||||
libraryTarget: 'commonjs2', | libraryTarget: 'commonjs2', | ||||
path: path.join(__dirname, 'dist'), | path: path.join(__dirname, 'dist'), | ||||
}, | }, | ||||
}; | }; | ||||
const baseWebWorkersConfig = { | const baseWebWorkersConfig = { | ||||
plugins: [ | |||||
new CopyPlugin({ | |||||
patterns: [ | |||||
{ | |||||
from: 'node_modules/sql.js/dist/sql-wasm.wasm', | |||||
to: path.join(__dirname, 'dist'), | |||||
}, | |||||
], | |||||
}), | |||||
], | |||||
entry: { | entry: { | ||||
pushNotif: './push-notif/service-worker.js', | pushNotif: './push-notif/service-worker.js', | ||||
}, | }, | ||||
output: { | output: { | ||||
filename: '[name].build.js', | filename: '[name].build.js', | ||||
path: path.join(__dirname, 'dist', 'webworkers'), | path: path.join(__dirname, 'dist', 'webworkers'), | ||||
}, | }, | ||||
}; | }; | ||||
Show All 20 Lines |