mirror of
https://github.com/OneUptime/oneuptime
synced 2024-11-23 07:42:10 +00:00
webpack config for web splitted
This commit is contained in:
parent
4ef3e9e2a9
commit
d503633eaf
1
log-js/dist/logger.min.js
vendored
Normal file
1
log-js/dist/logger.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
@ -1,6 +1,6 @@
|
||||
const path = require('path');
|
||||
|
||||
module.exports = {
|
||||
const serverBuild = {
|
||||
mode: 'production',
|
||||
entry: './src/logger.js',
|
||||
target: 'node',
|
||||
@ -30,3 +30,9 @@ module.exports = {
|
||||
extensions: ['.js'],
|
||||
},
|
||||
};
|
||||
const webBuild = {
|
||||
...serverBuild,
|
||||
target: 'web',
|
||||
output: { ...serverBuild.output, filename: 'logger.min.js' },
|
||||
};
|
||||
module.exports = [serverBuild, webBuild];
|
||||
|
Loading…
Reference in New Issue
Block a user