Changeset View
Changeset View
Standalone View
Standalone View
web/webpack.config.cjs
Show First 20 Lines • Show All 97 Lines • ▼ Show 20 Lines | new CopyPlugin({ | ||||
from: 'node_modules/sql.js/dist/sql-wasm.wasm', | from: 'node_modules/sql.js/dist/sql-wasm.wasm', | ||||
to: path.join(__dirname, 'dist'), | to: path.join(__dirname, 'dist'), | ||||
}, | }, | ||||
], | ], | ||||
}), | }), | ||||
], | ], | ||||
entry: { | entry: { | ||||
pushNotif: './push-notif/service-worker.js', | pushNotif: './push-notif/service-worker.js', | ||||
database: './database/worker/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 |