Changeset View
Changeset View
Standalone View
Standalone View
web/webpack.config.cjs
Show First 20 Lines • Show All 82 Lines • ▼ Show 20 Lines | output: { | ||||
libraryTarget: 'commonjs2', | libraryTarget: 'commonjs2', | ||||
path: path.join(__dirname, 'dist'), | path: path.join(__dirname, 'dist'), | ||||
}, | }, | ||||
}; | }; | ||||
const baseWebWorkersConfig = { | const baseWebWorkersConfig = { | ||||
entry: { | entry: { | ||||
pushNotif: './push-notif/service-worker.js', | pushNotif: './push-notif/service-worker.js', | ||||
webDatabase: './database/worker/web-db-worker.js', | |||||
}, | }, | ||||
output: { | output: { | ||||
filename: '[name].build.js', | filename: '[name].build.js', | ||||
path: path.join(__dirname, 'dist', 'webworkers'), | path: path.join(__dirname, 'dist', 'webworkers'), | ||||
}, | }, | ||||
}; | }; | ||||
module.exports = function (env) { | module.exports = function (env) { | ||||
Show All 18 Lines |