Files
orbitdb/conf/webpack.config.js
2023-02-16 10:16:15 +02:00

27 lines
525 B
JavaScript

import path from 'path'
import { fileURLToPath } from 'url'
export default (env, argv) => {
const __filename = fileURLToPath(import.meta.url)
const __dirname = path.dirname(__filename)
return {
entry: './src/log.js',
output: {
libraryTarget: 'var',
library: 'Log',
filename: 'ipfslog.min.js'
},
target: 'web',
mode: 'production',
plugins: [
],
resolve: {
modules: [
'node_modules',
path.resolve(__dirname, '../node_modules')
]
}
}
}