mirror of
https://github.com/orbitdb/orbitdb.git
synced 2025-10-07 22:57:07 +00:00
27 lines
525 B
JavaScript
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')
|
|
]
|
|
}
|
|
}
|
|
}
|