You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
blockvote/node_modules/oboe/webpack.config.node.js

22 lines
468 B

const path = require('path')
const fs = require('fs')
const webpack = require('webpack')
const version = fs.readFileSync('./build/version.txt', 'utf8')
module.exports = {
entry: './src/entry.js',
target: 'node',
output: {
path: path.resolve(__dirname, 'dist'),
filename: 'oboe-node.js',
library: 'oboe',
libraryTarget: 'umd2',
libraryExport: 'default',
umdNamedDefine: true
},
plugins: [
new webpack.BannerPlugin(version)
]
}